Lightweight coding agent that runs in your terminal
Rust
Use `--locked` in cargo build and lint invocations (#21602)
Zanie Blue79154e6952ee
diff --git a/.github/workflows/rust-ci-full.yml b/.github/workflows/rust-ci-full.ymlindex d0edf6751b..4ebf748b90 100644--- a/.github/workflows/rust-ci-full.yml+++ b/.github/workflows/rust-ci-full.yml@@ -445,7 +445,7 @@ jobs:cargo chef cook --recipe-path "$RECIPE" --target ${{ matrix.target }} --release- name: cargo clippy- run: cargo clippy --target ${{ matrix.target }} --tests --profile ${{ matrix.profile }} --timings -- -D warnings+ run: cargo clippy --target ${{ matrix.target }} --tests --profile ${{ matrix.profile }} --timings --locked -- -D warnings- name: Upload Cargo timings (clippy)if: always()diff --git a/.github/workflows/rust-release-argument-comment-lint.yml b/.github/workflows/rust-release-argument-comment-lint.ymlindex 277dcd122a..dda53794d6 100644--- a/.github/workflows/rust-release-argument-comment-lint.yml+++ b/.github/workflows/rust-release-argument-comment-lint.yml@@ -75,7 +75,7 @@ jobs:- name: Cargo buildworking-directory: tools/argument-comment-lintshell: bash- run: cargo build --release --target ${{ matrix.target }}+ run: cargo build --release --target ${{ matrix.target }} --locked- name: Stage artifactshell: bashdiff --git a/.github/workflows/rust-release-windows.yml b/.github/workflows/rust-release-windows.ymlindex 24d6d67e03..370e171978 100644--- a/.github/workflows/rust-release-windows.yml+++ b/.github/workflows/rust-release-windows.yml@@ -109,7 +109,7 @@ jobs:for binary in ${{ matrix.binaries }}; dobuild_args+=(--bin "$binary")done- cargo build --target ${{ matrix.target }} --release --timings "${build_args[@]}"+ cargo build --target ${{ matrix.target }} --release --timings --locked "${build_args[@]}"- name: Upload Cargo timingsuses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0diff --git a/.github/workflows/rust-release.yml b/.github/workflows/rust-release.ymlindex 43d70e5a3f..7d388acef4 100644--- a/.github/workflows/rust-release.yml+++ b/.github/workflows/rust-release.yml@@ -261,7 +261,7 @@ jobs:run: |set -euo pipefailtarget="${{ matrix.target }}"- cargo build --target "$target" --release --timings --bin bwrap+ cargo build --target "$target" --release --timings --locked --bin bwrapbwrap_path="target/${target}/release/bwrap"if [[ ! -f "$bwrap_path" ]]; then@@ -281,7 +281,7 @@ jobs:build_args+=(--bin "$binary")doneecho "CARGO_PROFILE_RELEASE_LTO: ${CARGO_PROFILE_RELEASE_LTO}"- cargo build --target ${{ matrix.target }} --release --timings "${build_args[@]}"+ cargo build --target ${{ matrix.target }} --release --timings --locked "${build_args[@]}"- name: Upload Cargo timingsuses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0