File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 -y
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 :
You can’t perform that action at this time.
0 commit comments