From 8c9d0314fbb114e0178aa07b39ec5ed1e6bd2f18 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Tue, 23 May 2023 17:52:10 -0700 Subject: [PATCH] Use sccache for all native builds in CI --- .github/workflows/build.yml | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9c4b9be56..1da287769 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,10 +24,10 @@ jobs: matrix: os: [ubuntu-latest, windows-latest, macos-latest] env: - NDK_CCACHE: ccache - CCACHE_DIR: ${{ github.workspace }}/.ccache - CCACHE_COMPILERCHECK: "%compiler% -dumpmachine; %compiler% -dumpversion" + NDK_CCACHE: sccache RUSTC_WRAPPER: sccache + SCCACHE_GHA_ENABLED: true + CARGO_INCREMENTAL: 0 steps: - name: Check out @@ -47,18 +47,8 @@ jobs: with: python-version: "3.x" - - name: Set up ccache - uses: hendrikmuhs/ccache-action@v1.2 - with: - key: ${{ runner.os }}-${{ github.sha }} - restore-keys: ${{ runner.os }} - - name: Set up sccache - uses: hendrikmuhs/ccache-action@v1.2 - with: - variant: sccache - key: ${{ runner.os }}-${{ github.sha }} - restore-keys: ${{ runner.os }} + uses: mozilla-actions/sccache-action@v0.0.3 - name: Cache Gradle dependencies uses: actions/cache@v3