ci: force pinned Cargo in professionalization workflow
This commit is contained in:
@@ -5,6 +5,7 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
paths:
|
paths:
|
||||||
|
- 'rust-toolchain.toml'
|
||||||
- 'adk-rust/crates/detmir-core/**'
|
- 'adk-rust/crates/detmir-core/**'
|
||||||
- 'adk-rust/crates/detmir-portal/**'
|
- 'adk-rust/crates/detmir-portal/**'
|
||||||
- 'scripts/check_private_config_guard.sh'
|
- 'scripts/check_private_config_guard.sh'
|
||||||
@@ -22,34 +23,35 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Rust 1.85 with rustfmt and clippy
|
- name: Install pinned Rust toolchain
|
||||||
run: |
|
run: |
|
||||||
rustup toolchain install 1.85.0 --profile minimal --component rustfmt --component clippy
|
rustup toolchain install 1.85.0 --profile minimal --component rustfmt --component clippy
|
||||||
rustup default 1.85.0
|
rustup override set 1.85.0
|
||||||
cargo --version
|
rustup show active-toolchain
|
||||||
rustc --version
|
cargo +1.85.0 --version
|
||||||
|
rustc +1.85.0 --version
|
||||||
|
|
||||||
- name: Cargo fmt check
|
- name: Cargo fmt check
|
||||||
working-directory: adk-rust
|
working-directory: adk-rust
|
||||||
run: cargo fmt --all -- --check
|
run: cargo +1.85.0 fmt --all -- --check
|
||||||
|
|
||||||
- name: Test detmir-core
|
- name: Test detmir-core
|
||||||
working-directory: adk-rust
|
working-directory: adk-rust
|
||||||
run: cargo test -p detmir-core
|
run: cargo +1.85.0 test -p detmir-core
|
||||||
|
|
||||||
- name: Test detmir-portal
|
- name: Test detmir-portal
|
||||||
working-directory: adk-rust
|
working-directory: adk-rust
|
||||||
run: cargo test -p detmir-portal
|
run: cargo +1.85.0 test -p detmir-portal
|
||||||
|
|
||||||
- name: Clippy detmir-core
|
- name: Clippy detmir-core
|
||||||
working-directory: adk-rust
|
working-directory: adk-rust
|
||||||
run: cargo clippy -p detmir-core --all-targets -- -D warnings
|
run: cargo +1.85.0 clippy -p detmir-core --all-targets -- -D warnings
|
||||||
|
|
||||||
- name: Clippy detmir-portal with captured log
|
- name: Clippy detmir-portal with captured log
|
||||||
working-directory: adk-rust
|
working-directory: adk-rust
|
||||||
run: |
|
run: |
|
||||||
set +e
|
set +e
|
||||||
cargo clippy -p detmir-portal --all-targets -- -D warnings > ../detmir-portal-clippy.log 2>&1
|
cargo +1.85.0 clippy -p detmir-portal --all-targets -- -D warnings > ../detmir-portal-clippy.log 2>&1
|
||||||
status=$?
|
status=$?
|
||||||
echo "clippy_exit_status=${status}" > ../detmir-portal-clippy-status.txt
|
echo "clippy_exit_status=${status}" > ../detmir-portal-clippy-status.txt
|
||||||
tail -n 80 ../detmir-portal-clippy.log
|
tail -n 80 ../detmir-portal-clippy.log
|
||||||
|
|||||||
Reference in New Issue
Block a user