From af5ab94521d6695a461d076211fb895df1c88665 Mon Sep 17 00:00:00 2001 From: jasonwitty Date: Mon, 18 May 2026 16:29:03 -0700 Subject: [PATCH] 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. --- .gitea/workflows/build-and-deploy.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build-and-deploy.yaml b/.gitea/workflows/build-and-deploy.yaml index 4314251..87a4975 100644 --- a/.gitea/workflows/build-and-deploy.yaml +++ b/.gitea/workflows/build-and-deploy.yaml @@ -21,10 +21,10 @@ jobs: - name: Set up Rust toolchain run: | + echo "$HOME/.cargo/bin" >> $GITHUB_PATH + export PATH="$HOME/.cargo/bin:$PATH" rustup update stable rustup default stable - env: - RUSTFLAGS: -D warnings - name: Run tests run: cargo test --all-targets --all-features @@ -40,6 +40,8 @@ jobs: - name: Set up Rust toolchain run: | + echo "$HOME/.cargo/bin" >> $GITHUB_PATH + export PATH="$HOME/.cargo/bin:$PATH" rustup update stable rustup default stable rustup component add rustfmt clippy