From b847f843401a2f5a01826436bcd5dadaea9a1149 Mon Sep 17 00:00:00 2001 From: Timotheus Bachinger Date: Wed, 15 Jan 2025 15:01:33 +0100 Subject: [PATCH] gh-actions: introduce bazel cache --- .github/workflows/pr.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 4cdd70916c8..7b3deae20d6 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -50,6 +50,14 @@ jobs: with: key: uv-${{ runner.os }}-${{ hashFiles('requirements_all_lock.txt') }} path: ${{ env.UV_CACHE_DIR }} + - name: Cache bazel + uses: actions/cache@v3 + with: + key: ${{ runner.os }}-bazel-${{ hashFiles('.bazelversion', '.bazelrc', 'WORKSPACE', 'MODULE.bazel') }} + path: | + ~/.cache/bazel + restore-keys: | + ${{ runner.os }}-bazel- - name: Setup Environment run: | # ksh: Needed for some "unit test" (test_mk_errpt_aix).