chore(actions): update

This commit is contained in:
EdJoPaTo
2021-02-13 09:48:13 +01:00
parent 3f5e936337
commit 2237106124
+26 -28
View File
@@ -14,19 +14,17 @@ jobs:
run: | run: |
rustc --version rustc --version
cargo --version cargo --version
- name: Cache cargo registry - name: Cache cargo
uses: actions/cache@v1 uses: actions/cache@v2
with: with:
path: ~/.cargo/registry path: |
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} ~/.cargo/registry
- name: Cache cargo build ~/.cargo/git
uses: actions/cache@v1 target
with: key: ${{ runner.os }}-cargo-lint-${{ hashFiles('**/Cargo.lock') }}
path: target
key: ${{ runner.os }}-cargo-lint-target-${{ hashFiles('**/Cargo.lock') }}
- name: Run clippy - name: Run clippy
run: cargo clippy --verbose --all-targets --all-features -- -D warnings run: cargo clippy --verbose --all-targets --all-features -- -D warnings -D clippy::pedantic
- name: Check format - name: Check format
run: cargo fmt -- --check --verbose run: cargo fmt -- --check --verbose
@@ -39,16 +37,14 @@ jobs:
run: | run: |
rustc --version rustc --version
cargo --version cargo --version
- name: Cache cargo registry - name: Cache cargo
uses: actions/cache@v1 uses: actions/cache@v2
with: with:
path: ~/.cargo/registry path: |
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} ~/.cargo/registry
- name: Cache cargo build ~/.cargo/git
uses: actions/cache@v1 target
with: key: ${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.lock') }}
path: target
key: ${{ runner.os }}-cargo-test-target-${{ hashFiles('**/Cargo.lock') }}
- name: Build - name: Build
run: cargo build --verbose --all-targets run: cargo build --verbose --all-targets
@@ -75,16 +71,18 @@ jobs:
- name: Add Target - name: Add Target
run: rustup target add ${{ matrix.config.triple }} run: rustup target add ${{ matrix.config.triple }}
- name: Cache cargo registry - name: Cache cargo
uses: actions/cache@v1 uses: actions/cache@v2
with: with:
path: ~/.cargo/registry path: |
key: ${{ matrix.config.triple }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} ~/.cargo/registry
- name: Cache cargo build ~/.cargo/git
uses: actions/cache@v1 target
with: key: ${{ matrix.config.triple }}-cargo-release-${{ hashFiles('**/Cargo.lock') }}
path: target
key: ${{ matrix.config.triple }}-cargo-release-target-${{ hashFiles('**/Cargo.lock') }}
- name: Build release - name: Build release
run: cargo build --release --verbose --all-targets --target ${{ matrix.config.triple }} run: cargo build --release --verbose --all-targets --target ${{ matrix.config.triple }}
- name: inspect target dir
if: runner.os == 'Linux' || runner.os == 'macOS'
run: ls -al target/*/release