Skip to content

Commit fd7dfa7

Browse files
committed
fix: Update how rustup is verified
1 parent 2320d4e commit fd7dfa7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

action.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ runs:
2929
- name: Ensure that Rust is already installed
3030
shell: bash
3131
run: |
32-
if [ ! -d "$HOME/.cargo/bin" ]; then
32+
if ! command -v rustup &> /dev/null; then
3333
curl https://sh.rustup.rs -sSf | sh -s -- --profile minimal -y
34+
export PATH="$HOME/.cargo/bin:$PATH"
35+
echo "PATH=$PATH" >> $GITHUB_ENV
3436
fi
3537
3638
- name: Detect host target triple

0 commit comments

Comments
 (0)