diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 07f029d..96a4390 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -22,12 +22,12 @@ jobs: submodules: "recursive" - name: Setup Rust run: rustup toolchain install stable --profile minimal --no-self-update - # - name: Configure sccache - # run: | - # echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV - # echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV - # echo "RUSTFLAGS='--cfg profile=ci-build'" >> $GITHUB_ENV - - name: Run sccache-cache + - name: Configure sccache + run: | + echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV + echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV + echo "RUSTFLAGS='--cfg profile=ci-build'" >> $GITHUB_ENV + - name: Run sccache-cache uses: mozilla-actions/sccache-action@v0.0.4 - name: Cache cargo deps uses: Swatinem/rust-cache@v2 diff --git a/Cargo.toml b/Cargo.toml index 162619e..35b8144 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,5 +19,6 @@ strip = true panic = "unwind" [profile.ci-build] +inherits = "release" opt-level = 2 codegen-units = 8