fix: add ~/.cargo/bin to PATH for inline rustup run steps
All checks were successful
Build and Deploy to K3s / test (push) Successful in 1m33s
Build and Deploy to K3s / lint (push) Successful in 58s
Build and Deploy to K3s / build-and-push (push) Successful in 7m56s
Build and Deploy to K3s / deploy (push) Successful in 9s

The act runner uses a minimal PATH for inline run: steps that does not
include ~/.cargo/bin. Add it explicitly via both export PATH and
GITHUB_PATH so rustup/cargo are available in the setup step and all
subsequent steps.
This commit is contained in:
jasonwitty 2026-05-18 16:29:03 -07:00
parent 1ea8768616
commit af5ab94521

View File

@ -21,10 +21,10 @@ jobs:
- name: Set up Rust toolchain - name: Set up Rust toolchain
run: | run: |
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
export PATH="$HOME/.cargo/bin:$PATH"
rustup update stable rustup update stable
rustup default stable 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
@ -40,6 +40,8 @@ jobs:
- name: Set up Rust toolchain - name: Set up Rust toolchain
run: | run: |
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
export PATH="$HOME/.cargo/bin:$PATH"
rustup update stable rustup update stable
rustup default stable rustup default stable
rustup component add rustfmt clippy rustup component add rustfmt clippy