Use absolute cargo path in toolchain step too
This commit is contained in:
1 parent
1acdc44f88
commit
07b072e5b7
1 file changed
+2
-1
@@ -37,8 +37,9 @@ jobs:
|
|||||||
if ! command -v cargo >/dev/null && [ ! -x "$HOME/.cargo/bin/cargo" ]; then
|
if ! command -v cargo >/dev/null && [ ! -x "$HOME/.cargo/bin/cargo" ]; then
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable
|
||||||
fi
|
fi
|
||||||
|
# runner v5.2.2 does not apply GITHUB_PATH to later steps, so use absolute paths
|
||||||
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
|
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
|
||||||
cargo --version
|
"$HOME/.cargo/bin/cargo" --version
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in new issue
Block a user