diff --git a/.github/actions/install-rust/main.js b/.github/actions/install-rust/main.js index e408b3a8bc..f94596aa8e 100644 --- a/.github/actions/install-rust/main.js +++ b/.github/actions/install-rust/main.js @@ -12,4 +12,10 @@ child_process.execFileSync('rustup', ['set', 'profile', 'minimal']); child_process.execFileSync('rustup', ['update', toolchain, '--no-self-update']); child_process.execFileSync('rustup', ['default', toolchain]); +// Save disk space by avoiding incremental compilation, and also we don't use +// any caching so incremental wouldn't help anyway. console.log(`::set-env name=CARGO_INCREMENTAL::0`); + +// Turn down debuginfo from 2 to 1 to help save disk space +console.log(`::set-env name=CARGO_PROFILE_DEV_DEBUG::1`); +console.log(`::set-env name=CARGO_PROFILE_TEST_DEBUG::1`);