From fd7dfa7f237811c2c64f983b391c8744b35cba25 Mon Sep 17 00:00:00 2001 From: Sergio Gasquez Date: Mon, 3 Feb 2025 09:55:38 +0100 Subject: [PATCH] fix: Update how rustup is verified --- action.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/action.yaml b/action.yaml index 16385f2..6795b78 100644 --- a/action.yaml +++ b/action.yaml @@ -29,8 +29,10 @@ runs: - name: Ensure that Rust is already installed shell: bash run: | - if [ ! -d "$HOME/.cargo/bin" ]; then + if ! command -v rustup &> /dev/null; then curl https://sh.rustup.rs -sSf | sh -s -- --profile minimal -y + export PATH="$HOME/.cargo/bin:$PATH" + echo "PATH=$PATH" >> $GITHUB_ENV fi - name: Detect host target triple