From f6fc12bb9dd36802e2a148f5e24e5ce10bf0be59 Mon Sep 17 00:00:00 2001 From: Mike Solar Date: Sat, 18 Jul 2026 14:03:58 +0800 Subject: [PATCH] ci: use actions/cache for ccache on Windows runners WarpBuilds/cache does not support Windows; keep it for Linux/macOS and restore the same keys from GitHub's cache service on Windows instead. --- .github/workflows/ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 24256291d..a038ea6fe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -108,6 +108,7 @@ jobs: # flags below pick it up on all three platforms # ------------------------------------------------------------------ - name: Restore ccache + if: runner.os != 'Windows' uses: WarpBuilds/cache@v1 with: path: ${{ github.workspace }}/.ccache @@ -116,6 +117,18 @@ jobs: ccache-${{ runner.os }}-${{ github.ref_name }}- ccache-${{ runner.os }}- + # WarpBuilds/cache does not support Windows runners; use GitHub's + # cache service there (separate backend, same keys) + - name: Restore ccache (Windows) + if: runner.os == 'Windows' + uses: actions/cache@v4 + with: + path: ${{ github.workspace }}/.ccache + key: ccache-${{ runner.os }}-${{ github.ref_name }}-${{ github.sha }} + restore-keys: | + ccache-${{ runner.os }}-${{ github.ref_name }}- + ccache-${{ runner.os }}- + # ------------------------------------------------------------------ # Configure # ------------------------------------------------------------------