Turn down debuginfo level on CI (#1545)
We don't need full debug information but rather line tables (debuginfo=1) should suffice for backtraces if truly necessary. Note that this doesn't actually work on stable Rust just yet due to it being an unrelease feature of Cargo. With the Rust release next week though this'll work on all of stable/beta/nightly.
This commit is contained in:
6
.github/actions/install-rust/main.js
vendored
6
.github/actions/install-rust/main.js
vendored
@@ -12,4 +12,10 @@ child_process.execFileSync('rustup', ['set', 'profile', 'minimal']);
|
|||||||
child_process.execFileSync('rustup', ['update', toolchain, '--no-self-update']);
|
child_process.execFileSync('rustup', ['update', toolchain, '--no-self-update']);
|
||||||
child_process.execFileSync('rustup', ['default', toolchain]);
|
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`);
|
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`);
|
||||||
|
|||||||
Reference in New Issue
Block a user