ci: force pinned Cargo in rust workspace workflow

This commit is contained in:
IgorRachkov
2026-06-14 16:17:17 +03:00
parent f711e6babb
commit a303a0d7f5
+12 -8
View File
@@ -5,6 +5,7 @@ on:
branches: [ "main" ] branches: [ "main" ]
pull_request: pull_request:
branches: [ "main" ] branches: [ "main" ]
workflow_dispatch:
jobs: jobs:
rust-workspace: rust-workspace:
@@ -13,19 +14,22 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install Rust 1.85 - name: Install pinned Rust toolchain
uses: dtolnay/rust-toolchain@1.85.0 run: |
with: rustup toolchain install 1.85.0 --profile minimal --component rustfmt --component clippy
components: rustfmt, clippy rustup override set 1.85.0
rustup show active-toolchain
cargo +1.85.0 --version
rustc +1.85.0 --version
- name: Format - 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 - 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 - 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 - 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