From ea8190d0190aa9785844b6a3391c3d653d2350c8 Mon Sep 17 00:00:00 2001 From: mhucka Date: Mon, 10 Aug 2026 17:23:40 +0000 Subject: [PATCH] Parametrize Bazel `disk-cache` by `matrix.os` The Bazel disk cache should probably be limited by matrix.os and Python version. --- .github/workflows/ci.yml | 2 +- .github/workflows/prerelease.yml | 2 +- .github/workflows/stable-release-workflow.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fd2bda78..d4c343e0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -67,7 +67,7 @@ jobs: uses: bazel-contrib/setup-bazel@c5acdfb288317d0b5c0bbd7a396a3dc868bb0f86 # 0.19.0 with: bazelisk-cache: true - disk-cache: ${{ github.workflow }} + disk-cache: ${{ github.workflow }}-${{ matrix.os }} repository-cache: true - name: Install clang-format (Linux) diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index 6c584b5b..1528cdbf 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -68,7 +68,7 @@ jobs: uses: bazel-contrib/setup-bazel@c5acdfb288317d0b5c0bbd7a396a3dc868bb0f86 # 0.19.0 with: bazelisk-cache: true - disk-cache: ${{ github.workflow }} + disk-cache: ${{ github.workflow }}-${{ matrix.os }}-py${{ matrix.python-version }} repository-cache: true - name: Set Python Version diff --git a/.github/workflows/stable-release-workflow.yml b/.github/workflows/stable-release-workflow.yml index 7f54aa1f..274039e1 100644 --- a/.github/workflows/stable-release-workflow.yml +++ b/.github/workflows/stable-release-workflow.yml @@ -68,7 +68,7 @@ jobs: uses: bazel-contrib/setup-bazel@c5acdfb288317d0b5c0bbd7a396a3dc868bb0f86 # 0.19.0 with: bazelisk-cache: true - disk-cache: ${{ github.workflow }} + disk-cache: ${{ github.workflow }}-${{ matrix.os }}-py${{ matrix.python-version }} repository-cache: true - name: Set Python Version