File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22git diff --quiet
33dirty_workspace=$?
44fmt_args=" --check"
5- clippy_args=" "
5+ clippy_args=" --no-deps "
66if [ $dirty_workspace -eq 0 ]; then
77 fmt_args=" "
88 clippy_args=" --fix --allow-dirty"
Original file line number Diff line number Diff line change @@ -56,13 +56,16 @@ jobs:
5656 ~/.cargo/
5757 target/
5858 key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
59+ restore-keys : |
60+ ${{ runner.os }}-cargo-
5961
6062 - name : Install dependencies
6163 if : steps.deps-cache.outputs.cache-hit != 'true'
6264 run : |
6365 # TODO: rustup target add aarch64-unknown-linux-gnu
6466 # Linting tools
6567 cargo install cargo-shear
68+ cargo fetch --locked
6669
6770 - name : Build
6871 id : build
7780 - name : Clippy
7881 id : clippy
7982 if : always()
80- run : cargo clippy --profile ${{ env.build-type }} --locked -- --deny warnings
83+ run : cargo clippy --profile ${{ env.build-type }} --no-deps -- locked -- --deny warnings
8184
8285 - name : Format
8386 id : format
@@ -129,4 +132,4 @@ jobs:
129132 path : |
130133 ~/.cargo/
131134 target/
132- key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
135+ key : ${{ steps.deps-cache.outputs.cache-primary-key }}
You can’t perform that action at this time.
0 commit comments