From 8e2e93c58d054911193a064d7afdc26cea269ddd Mon Sep 17 00:00:00 2001 From: Zanie Date: Wed, 18 Oct 2023 10:29:05 -0500 Subject: [PATCH] Add sccache to CI tests --- .github/workflows/ci.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 382488af3a..0bba70b19e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -88,6 +88,10 @@ jobs: os: [ubuntu-latest, windows-latest] runs-on: ${{ matrix.os }} name: "cargo test | ${{ matrix.os }}" + env: + CARGO_INCREMENTAL: 0 + SCCACHE_GHA_ENABLED: "true" + RUSTC_WRAPPER: "sccache" steps: - uses: actions/checkout@v4 - name: "Install Rust toolchain" @@ -96,7 +100,10 @@ jobs: uses: taiki-e/install-action@v2 with: tool: cargo-insta - - uses: Swatinem/rust-cache@v2 + - name: Set up basic Rust cache + uses: Swatinem/rust-cache@v2 + - name: Set up sccache + uses: mozilla-actions/sccache-action@v0.0.3 - name: "Run tests (Ubuntu)" if: ${{ matrix.os == 'ubuntu-latest' }} run: cargo insta test --all --all-features --unreferenced reject