diff --git a/.github/workflows/build-and-test-linux.yaml b/.github/workflows/build-and-test-linux.yaml index 86b41d0ec..216475e9a 100644 --- a/.github/workflows/build-and-test-linux.yaml +++ b/.github/workflows/build-and-test-linux.yaml @@ -17,6 +17,9 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +env: + SCCACHE_VERSION: "0.9.0" + jobs: build: strategy: @@ -33,6 +36,12 @@ jobs: runs-on: ${{ matrix.os }} steps: - run: sudo apt-get -qq update + - name: Install sccache + run: | + curl -s -L "https://github.com/mozilla/sccache/releases/download/v${{ env.SCCACHE_VERSION }}/sccache-v${{ env.SCCACHE_VERSION }}-x86_64-unknown-linux-musl.tar.gz" \ + | tar xvz -C . + chmod +x "sccache-v${{ env.SCCACHE_VERSION }}-x86_64-unknown-linux-musl/sccache" + cp "sccache-v${{ env.SCCACHE_VERSION }}-x86_64-unknown-linux-musl/sccache" "/bin/sccache" - name: Install dependencies run: | sudo apt-get install -yqq --no-install-recommends \ diff --git a/.github/workflows/build-and-test-macos.yaml b/.github/workflows/build-and-test-macos.yaml index 6d3261d96..a5bc64308 100644 --- a/.github/workflows/build-and-test-macos.yaml +++ b/.github/workflows/build-and-test-macos.yaml @@ -47,6 +47,7 @@ jobs: lua \ ninja \ pkg-config \ + sccache \ || true # Ignore errors - name: Checkout uses: actions/checkout@v4