Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

patch rustup into path (#3087)

Sean Aye1a34248c0943
diff --git a/.github/actions/setup-rust/action.yml b/.github/actions/setup-rust/action.yml
index 721163c82d..8b4692e009 100644
--- a/.github/actions/setup-rust/action.yml
+++ b/.github/actions/setup-rust/action.yml
@@ -20,6 +20,14 @@ runs:
run: |
set -euo pipefail
+ # Rustup may be installed but missing from PATH if /etc/environment was overwritten
+ export PATH="$HOME/.cargo/bin:$PATH"
+ echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
+
+ if ! command -v rustup >/dev/null 2>&1; then
+ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal
+ fi
+
if [[ -f rust/rust-toolchain.toml ]]; then
toolchain="$(grep -E '^[[:space:]]*channel[[:space:]]*=' rust/rust-toolchain.toml | sed -E 's/.*"([^"]+)".*/\1/')"
else