diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index a05023af12..a25806d67e 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -336,6 +336,7 @@ jobs: - name: Run cargo build run: | ${cov_prefix} mold -run cargo build $CARGO_FLAGS $CARGO_FEATURES --bins --tests + sccache -s # Do install *before* running rust tests because they might recompile the # binaries with different features/flags.