From 6cae0e7feb2abef092562e383a89db13ad310e92 Mon Sep 17 00:00:00 2001 From: Josh Knapp Date: Sun, 1 Mar 2026 17:32:28 -0800 Subject: [PATCH] Source cargo env before using rustup in install step GITHUB_PATH only takes effect in subsequent steps, but rustup/rustc/cargo are called within the same step. Adding `. "$HOME/.cargo/env"` immediately after install puts cargo/rustup in PATH for the remainder of the step. Fixed in both Linux and macOS jobs. Co-Authored-By: Claude Opus 4.6 --- .gitea/workflows/build-app.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitea/workflows/build-app.yml b/.gitea/workflows/build-app.yml index 3739175..a7620ab 100644 --- a/.gitea/workflows/build-app.yml +++ b/.gitea/workflows/build-app.yml @@ -81,6 +81,7 @@ jobs: else curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable fi + . "$HOME/.cargo/env" echo "$HOME/.cargo/bin" >> $GITHUB_PATH rustc --version cargo --version @@ -176,6 +177,7 @@ jobs: else curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable fi + . "$HOME/.cargo/env" echo "$HOME/.cargo/bin" >> $GITHUB_PATH rustup target add aarch64-apple-darwin x86_64-apple-darwin rustc --version