fix: add ~/.cargo/bin to PATH for inline rustup run steps
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:
parent
1ea8768616
commit
af5ab94521
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user