Skip to content

Commit

Permalink
fix: actually prevent Cargo.lock from being modified in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
iTrooz committed May 14, 2024
1 parent 33d9308 commit 1c22eba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ jobs:
id: rustup
run: rustup show

# Important: run a command with the --locked flag first, so other commands can't modify Cargo.lock first. See https://github.com/iTrooz/efivar-rs/issues/81
- name: Fetch dependencies
run: cargo fetch
run: cargo fetch --locked

- name: Run cargo fmt
run: cargo fmt -- --check

- name: Run cargo check
run: cargo check --all-features --frozen

run: cargo check --all-features
- name: Run cargo clippy
run: cargo clippy --all-features

Expand Down

0 comments on commit 1c22eba

Please sign in to comment.