Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --locked to cargo invocations #863

Merged
merged 2 commits into from
Feb 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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