Skip to content

Commit b989c80

Browse files
authored
Merge pull request #34 from SergioGasquez/fix/rustup-installation
Fix how rustup is verified/installed
2 parents 2320d4e + fd7dfa7 commit b989c80

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)