From d838c23867f6fe2e3e43a0c82d25c17cb3730b1d Mon Sep 17 00:00:00 2001 From: Michael Bolin Date: Thu, 26 Mar 2026 18:32:13 -0700 Subject: [PATCH] fix: use matrix.target instead of matrix.os for actions/cache build action (#15933) This seems like a more precise cache key. --- .github/workflows/bazel.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/bazel.yml b/.github/workflows/bazel.yml index 1c12db52b..79d963a53 100644 --- a/.github/workflows/bazel.yml +++ b/.github/workflows/bazel.yml @@ -86,9 +86,9 @@ jobs: with: path: | ~/.cache/bazel-repo-cache - key: bazel-cache-${{ matrix.os }}-${{ hashFiles('MODULE.bazel', 'codex-rs/Cargo.lock', 'codex-rs/Cargo.toml') }} + key: bazel-cache-${{ matrix.target }}-${{ hashFiles('MODULE.bazel', 'codex-rs/Cargo.lock', 'codex-rs/Cargo.toml') }} restore-keys: | - bazel-cache-${{ matrix.os }} + bazel-cache-${{ matrix.target }} - name: Configure Bazel startup args (Windows) if: runner.os == 'Windows' @@ -230,4 +230,4 @@ jobs: with: path: | ~/.cache/bazel-repo-cache - key: bazel-cache-${{ matrix.os }}-${{ hashFiles('MODULE.bazel', 'codex-rs/Cargo.lock', 'codex-rs/Cargo.toml') }} + key: bazel-cache-${{ matrix.target }}-${{ hashFiles('MODULE.bazel', 'codex-rs/Cargo.lock', 'codex-rs/Cargo.toml') }}