* Move most wasmtime tests into one test suite This commit moves most wasmtime tests into a single test suite which gets compiled into one executable instead of having lots of test executables. The goal here is to reduce disk space on CI, and this should be achieved by having fewer executables which means fewer copies of `libwasmtime.rlib` linked across binaries on the system. More importantly though this means that DWARF debug information should only be in one executable rather than duplicated across many. * Share more build caches Globally set `RUSTFLAGS` to `-Dwarnings` instead of individually so all build steps share the same value. * Allow some dead code in cranelift-codegen Prevents having to fix all warnings for all possible feature combinations, only the main ones which come up. * Update some debug file paths
25 lines
1.1 KiB
JavaScript
25 lines
1.1 KiB
JavaScript
const child_process = require('child_process');
|
|
const toolchain = process.env.INPUT_TOOLCHAIN;
|
|
|
|
if (process.platform === 'darwin') {
|
|
child_process.execSync(`curl https://sh.rustup.rs | sh -s -- -y --default-toolchain=none --profile=minimal`);
|
|
const bindir = `${process.env.HOME}/.cargo/bin`;
|
|
console.log(`::add-path::${bindir}`);
|
|
process.env.PATH = `${process.env.PATH}:${bindir}`;
|
|
}
|
|
|
|
child_process.execFileSync('rustup', ['set', 'profile', 'minimal']);
|
|
child_process.execFileSync('rustup', ['update', toolchain, '--no-self-update']);
|
|
child_process.execFileSync('rustup', ['default', toolchain]);
|
|
|
|
// Deny warnings on CI to keep our code warning-free as it lands in-tree
|
|
console.log(`::set-env name=RUSTFLAGS::-D warnings`);
|
|
|
|
// 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`);
|