From 4e43cd5515276982a548a42e7ccf8f0beeb6355a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20=C3=85berg?= Date: Tue, 16 Dec 2025 01:59:58 +0100 Subject: [PATCH] Enable GHA for sccache --- .github/workflows/lint.yml | 2 ++ .github/workflows/test.yml | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 70c662b926f..ddd8f1f8a4c 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -153,6 +153,7 @@ jobs: env: RUSTFLAGS: "-D warnings" RUSTC_WRAPPER: sccache + SCCACHE_GHA_ENABLED: "true" - name: Cache cargo-sort id: cache-cargo-sort @@ -179,6 +180,7 @@ jobs: run: cargo +nightly udeps --workspace --all-features --all-targets env: RUSTC_WRAPPER: sccache + SCCACHE_GHA_ENABLED: "true" - name: Install cargo-deny uses: taiki-e/install-action@81ee1d48d9194cdcab880cbdc7d36e87d39874cb # v2.62.45 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2f876fd5da3..750dcd1f24d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -125,6 +125,7 @@ jobs: run: cargo build env: RUSTC_WRAPPER: sccache + SCCACHE_GHA_ENABLED: "true" - name: Test Ubuntu if: ${{ matrix.os=='ubuntu-22.04' }} @@ -138,6 +139,7 @@ jobs: cargo test -- --test-threads=1 env: RUSTC_WRAPPER: sccache + SCCACHE_GHA_ENABLED: "true" - name: Test macOS if: ${{ matrix.os=='macos-14' }} @@ -145,6 +147,7 @@ jobs: run: cargo test -- --test-threads=1 env: RUSTC_WRAPPER: sccache + SCCACHE_GHA_ENABLED: "true" - name: Test Windows if: ${{ matrix.os=='windows-2022'}} @@ -152,6 +155,7 @@ jobs: run: cargo test --workspace --exclude=desktop_napi -- --test-threads=1 env: RUSTC_WRAPPER: sccache + SCCACHE_GHA_ENABLED: "true" rust-coverage: name: Rust Coverage