From a303a0d7f547fd4b7afb735b8a9ac7e6f8aa652a Mon Sep 17 00:00:00 2001 From: IgorRachkov <89467086+igor04091968@users.noreply.github.com> Date: Sun, 14 Jun 2026 16:17:17 +0300 Subject: [PATCH] ci: force pinned Cargo in rust workspace workflow --- .github/workflows/rust-workspace.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/rust-workspace.yml b/.github/workflows/rust-workspace.yml index 2660c71..552620d 100644 --- a/.github/workflows/rust-workspace.yml +++ b/.github/workflows/rust-workspace.yml @@ -5,6 +5,7 @@ on: branches: [ "main" ] pull_request: branches: [ "main" ] + workflow_dispatch: jobs: rust-workspace: @@ -13,19 +14,22 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Install Rust 1.85 - uses: dtolnay/rust-toolchain@1.85.0 - with: - components: rustfmt, clippy + - name: Install pinned Rust toolchain + run: | + rustup toolchain install 1.85.0 --profile minimal --component rustfmt --component clippy + rustup override set 1.85.0 + rustup show active-toolchain + cargo +1.85.0 --version + rustc +1.85.0 --version - name: Format - run: cargo fmt --manifest-path adk-rust/Cargo.toml --all -- --check + run: cargo +1.85.0 fmt --manifest-path adk-rust/Cargo.toml --all -- --check - name: Test - run: cargo test --manifest-path adk-rust/Cargo.toml --workspace + run: cargo +1.85.0 test --manifest-path adk-rust/Cargo.toml --workspace - name: Clippy - run: cargo clippy --manifest-path adk-rust/Cargo.toml --workspace --all-targets -- -D warnings + run: cargo +1.85.0 clippy --manifest-path adk-rust/Cargo.toml --workspace --all-targets -- -D warnings - name: Release build - run: cargo build --manifest-path adk-rust/Cargo.toml --workspace --release + run: cargo +1.85.0 build --manifest-path adk-rust/Cargo.toml --workspace --release