From 665d9ec57cab09684b0983620ed8a54c5adbd4d9 Mon Sep 17 00:00:00 2001 From: Emily Albini Date: Tue, 3 Mar 2026 21:40:54 +0100 Subject: [PATCH] relocate rust installation in reproducibility check --- .github/workflows/ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fcb193a412..4fd83c7844 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -242,6 +242,19 @@ jobs: echo "After time change: $(date)" + - name: Install Rust in a separate directory + run: | + rustup self uninstall -y + + sudo mkdir /custom-rust + sudo chown $(id -u):$(id -g) /custom-rust + + curl https://sh.rustup.rs | env \ + CARGO_HOME=/custom-rust/cargo \ + RUSTUP_HOME=/custom-rust/rustup \ + RUSTUP_INIT_SKIP_PATH_CHECK=yes \ + bash -s -- -y --no-modify-path --default-toolchain=none + - name: Build a Hubris board run: | # Permissions of files created during the build process might leak into the artifacts. @@ -249,6 +262,10 @@ jobs: # the reproducible-a job. umask 0077 + export CARGO_HOME=/custom-rust/cargo + export RUSTUP_HOME=/custom-rust/rustup + export PATH="/custom-rust/cargo/bin:${PATH}" + cd $CUSTOM_ROOT cargo xtask dist "$app_toml" env: