diff --git a/.github/actions/test_unit/action.yml b/.github/actions/test_unit/action.yml index 9497c3fff054a..07f637f6a57cf 100644 --- a/.github/actions/test_unit/action.yml +++ b/.github/actions/test_unit/action.yml @@ -21,7 +21,7 @@ runs: # If you need to reset the cache version, increment the number after `v` - uses: Swatinem/rust-cache@v1 with: - sharedKey: unit-v1 + sharedKey: unit-v2 - name: Test uses: actions-rs/cargo@v1 @@ -32,8 +32,10 @@ runs: RUST_TEST_THREADS: 2 RUST_LOG: ERROR RUST_BACKTRACE: full - RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests --cfg tokio_unstable' - RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests' + # symbol-mangling-version=v0 is a trick to reduce memory usage + # ref: https://github.com/rust-lang/rust/issues/82406#issuecomment-787541615 + RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests --cfg tokio_unstable -Z symbol-mangling-version=v0' + RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Z symbol-mangling-version=v0' - name: Install grcov uses: actions-rs/cargo@v1