diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 16a243ccb..7bfe20686 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,7 +14,7 @@ on: - '!no-build-**' # unless marked as no-build env: - SCCACHE_GHA_ENABLED: "true" + SCCACHE_GHA_ENABLED: "on" jobs: build: @@ -46,8 +46,11 @@ jobs: with: submodules: recursive - - name: Configure sccache - uses: mozilla-actions/sccache-action@v0.0.3 + - name: Configure cache + uses: hendrikmuhs/ccache-action@v1 + with: + key: ${{ matrix.config.os }} + variant: sccache - uses: ilammy/msvc-dev-cmd@v1 with: @@ -72,8 +75,7 @@ jobs: - name: Configure CMake run: > - cmake -B - ${{ github.workspace }}/build + cmake -B ${{ github.workspace }}/build ${{ matrix.config.extra_flags }} -DCLI_PATH="${{ github.workspace }}/cli" -DCMAKE_C_COMPILER_LAUNCHER=sccache