Skip to content

Commit 66ed1f9

Browse files
committed
CI: Check if Cargo.lock files exist and are up to date
Use `cargo clippy --locked` when checking the soruce code, which assert that the Cargo.lock file exists and is up to date. Signed-off-by: Matej Hrica <mhrica@redhat.com>
1 parent acfc2f7 commit 66ed1f9

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/code_quality-aarch64-darwin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ jobs:
2929
run: cargo fmt -- --check
3030

3131
- name: Clippy (efi+gpu features)
32-
run: LIBCLANG_PATH=/opt/homebrew/opt/llvm/lib cargo clippy --features efi,gpu -- -D warnings
32+
run: LIBCLANG_PATH=/opt/homebrew/opt/llvm/lib cargo clippy --locked --features efi,gpu -- -D warnings

.github/workflows/code_quality-aarch64.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
run: cargo fmt -- --check
2929

3030
- name: Clippy (default features)
31-
run: cargo clippy -- -D warnings
31+
run: cargo clippy --locked -- -D warnings
3232

3333
- name: Clippy (net+blk+gpu+snd features)
34-
run: cargo clippy --features net,blk,gpu,snd -- -D warnings
34+
run: cargo clippy --locked --features net,blk,gpu,snd -- -D warnings

.github/workflows/code_quality-x86_64.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@ jobs:
2828
run: cargo fmt -- --check
2929

3030
- name: Clippy (default features)
31-
run: cargo clippy -- -D warnings
31+
run: cargo clippy --locked -- -D warnings
3232

3333
- name: Clippy (amd-sev feature)
34-
run: cargo clippy --features amd-sev -- -D warnings
34+
run: cargo clippy --locked --features amd-sev -- -D warnings
3535

3636
- name: Clippy (tdx feature)
37-
run: cargo clippy --features tdx -- -D warnings
37+
run: cargo clippy --locked --features tdx -- -D warnings
3838

3939
- name: Clippy (net+blk+gpu+snd features)
40-
run: cargo clippy --features net,blk,gpu,snd -- -D warnings
40+
run: cargo clippy --locked --features net,blk,gpu,snd -- -D warnings
4141

4242
unit:
4343
if: github.event_name == 'pull_request'

0 commit comments

Comments
 (0)