Skip to content

Commit

Permalink
Add --locked to cargo invocations (#863)
Browse files Browse the repository at this point in the history
* Add --frozen --locked to cargo invokations

* Remove --frozen as too strict
  • Loading branch information
0x7CFE authored Feb 17, 2023
1 parent 6f28dfb commit ed4ed79
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/base_checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ jobs:
run: rustup target list --installed

- name: Check all features compilation
run: cargo check --verbose --all-features
run: cargo check --verbose --all-features --locked
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ jobs:
run: rustup target list --installed

- name: Check all features compilation
run: cargo check --verbose --all-features
run: cargo check --verbose --all-features --locked

- name: Run all tests
run: cargo test --all-features
run: cargo test --all-features --locked

native-linux:
needs: checks-and-tests
Expand Down Expand Up @@ -86,7 +86,7 @@ jobs:
run: rustup target list --installed

- name: Build optimized binary
run: CARGO_PROFILE_RELEASE_LTO=true RUSTFLAGS="-C codegen-units=1" cargo build --release --target ${{ matrix.target }} --verbose
run: CARGO_PROFILE_RELEASE_LTO=true RUSTFLAGS="-C codegen-units=1" cargo build --release --target ${{ matrix.target }} --verbose --locked

- name: Set artifact name
env:
Expand Down Expand Up @@ -159,7 +159,7 @@ jobs:
run: rustup target list --installed

- name: Build optimized binary
run: cargo build --release --verbose
run: cargo build --release --verbose --locked

- uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit ed4ed79

Please sign in to comment.