Skip to content

Commit b8690a5

Browse files
committed
relocate rust installation in reproducibility check
1 parent 1427344 commit b8690a5

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,13 +242,30 @@ jobs:
242242
243243
echo "After time change: $(date)"
244244
245+
- name: Install Rust in a separate directory
246+
run: |
247+
rustup self uninstall
248+
249+
sudo mkdir /custom-rust
250+
sudo chown $(id -u):$(id -g) /custom-rust
251+
252+
curl https://sh.rustup.rs | env \
253+
CARGO_HOME=/custom-rust/cargo \
254+
RUSTUP_HOME=/custom-rust/rustup \
255+
RUSTUP_INIT_SKIP_PATH_CHECK=yes \
256+
bash -s -- -y --no-modify-path --default-toolchain=none
257+
245258
- name: Build a Hubris board
246259
run: |
247260
# Permissions of files created during the build process might leak into the artifacts.
248261
# Changing the umask will let us test with different permissions than archives created in
249262
# the reproducible-a job.
250263
umask 0077
251264
265+
export CARGO_HOME=/custom-rust/cargo
266+
export RUSTUP_HOME=/custom-rust/rustup
267+
export PATH="/custom-rust/cargo/bin:${PATH}"
268+
252269
cd $CUSTOM_ROOT
253270
cargo xtask dist "$app_toml"
254271
env:

0 commit comments

Comments
 (0)