Skip to content

Commit

Permalink
Add --locked to workflow cargo commands
Browse files Browse the repository at this point in the history
  • Loading branch information
benfrankel committed Sep 6, 2024
1 parent 84ca612 commit c96c8b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ jobs:

- name: Run tests
run: |
cargo test --workspace --all-features --all-targets
cargo test --locked --workspace --all-features --all-targets
# Workaround for https://github.com/rust-lang/cargo/issues/6669
cargo test --workspace --all-features --doc
cargo test --locked --workspace --all-features --doc
# Run clippy lints.
clippy:
Expand All @@ -61,7 +61,7 @@ jobs:
sweep-cache: true

- name: Run clippy lints
run: cargo clippy --workspace --all-targets --all-features -- --deny warnings
run: cargo clippy --locked --workspace --all-targets --all-features -- --deny warnings

# Check formatting.
format:
Expand Down Expand Up @@ -101,4 +101,4 @@ jobs:
sweep-cache: true

- name: Check documentation
run: cargo doc --workspace --all-features --document-private-items --no-deps
run: cargo doc --locked --workspace --all-features --document-private-items --no-deps
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ jobs:
if: ${{ matrix.platform != 'web' }}
run: |
for target in ${{ matrix.targets }}; do
cargo build --profile='${{ matrix.profile }}' --target="${target}" --no-default-features --features='${{ matrix.features }}'
cargo build --locked --profile='${{ matrix.profile }}' --target="${target}" --no-default-features --features='${{ matrix.features }}'
mv target/"${target}"/'${{ matrix.profile }}/${{ env.cargo_build_binary_name }}${{ matrix.binary_ext }}' tmp/binary/"${target}"'${{ matrix.binary_ext }}'
done
Expand Down

0 comments on commit c96c8b2

Please sign in to comment.