fix: replace setup-rust-toolchain action with inline rustup commands
Some checks failed
Build and Deploy to K3s / test (push) Failing after 5s
Build and Deploy to K3s / lint (push) Has been skipped
Build and Deploy to K3s / build-and-push (push) Has been skipped
Build and Deploy to K3s / deploy (push) Has been skipped

The Swatinem/rust-cache action bundled in actions-rust-lang/setup-rust-toolchain@v1
was updated to require node24, which is not supported by the self-hosted act
runner (v0.2.6). Even with cache:false, act eagerly loads pre-steps for all
nested actions regardless of conditions, and the node24 incompatibility in
the rust-cache pre-step caused the parent step to be marked as failed —
skipping Run tests entirely.

Replace both test and lint toolchain setup steps with direct rustup shell
commands to eliminate the dependency on the composite action entirely.
This commit is contained in:
jasonwitty 2026-05-18 16:26:26 -07:00
parent 7e5a246269
commit 1ea8768616

View File

@ -20,12 +20,16 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up Rust toolchain - name: Set up Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1 run: |
with: rustup update stable
cache: false rustup default stable
env:
RUSTFLAGS: -D warnings
- name: Run tests - name: Run tests
run: cargo test --all-targets --all-features run: cargo test --all-targets --all-features
env:
RUSTFLAGS: -D warnings
lint: lint:
needs: test needs: test
@ -35,10 +39,10 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up Rust toolchain - name: Set up Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1 run: |
with: rustup update stable
components: rustfmt, clippy rustup default stable
cache: false rustup component add rustfmt clippy
- name: Cargo fmt - name: Cargo fmt
run: cargo fmt --all -- --check run: cargo fmt --all -- --check