summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRin Kuryloski <kuryloskip@vmware.com>2023-05-12 10:05:34 +0200
committerRin Kuryloski <kuryloskip@vmware.com>2023-05-12 12:45:01 +0200
commit204d0177c25b6a16cf9ba6923d61df165bc85b07 (patch)
tree0882e9d528987f5dba1e385977875a9f9dc5f110
parent92b0a81c609c3a774028cb54953084ee0bda1fe6 (diff)
downloadrabbitmq-server-git-204d0177c25b6a16cf9ba6923d61df165bc85b07.tar.gz
Fix github actions cache key for the bazel repo-cache
-rw-r--r--.github/workflows/test-mixed-versions.yaml8
-rw-r--r--.github/workflows/test-selenium.yaml4
-rw-r--r--.github/workflows/test.yaml8
3 files changed, 15 insertions, 5 deletions
diff --git a/.github/workflows/test-mixed-versions.yaml b/.github/workflows/test-mixed-versions.yaml
index 7fcc505d2b..948cf5daae 100644
--- a/.github/workflows/test-mixed-versions.yaml
+++ b/.github/workflows/test-mixed-versions.yaml
@@ -135,7 +135,9 @@ jobs:
uses: actions/cache@v3.3.1
with:
path: "/home/runner/repo-cache/"
- key: repo-cache
+ key: ${{ runner.os }}-repo-cache-${{ hashFiles('MODULE.bazel','WORKSPACE','bazel/bzlmod/secondary_umbrella.bzl') }}
+ restore-keys: |
+ ${{ runner.os }}-repo-cache-
- name: CONFIGURE BAZEL
run: |
if [ -n "${{ secrets.BUILDBUDDY_API_KEY }}" ]; then
@@ -183,7 +185,9 @@ jobs:
uses: actions/cache@v3.3.1
with:
path: "/home/runner/repo-cache/"
- key: repo-cache
+ key: ${{ runner.os }}-repo-cache-${{ hashFiles('MODULE.bazel','WORKSPACE','bazel/bzlmod/secondary_umbrella.bzl') }}
+ restore-keys: |
+ ${{ runner.os }}-repo-cache-
- name: CONFIGURE BAZEL
run: |
ERLANG_HOME="$(dirname $(dirname $(which erl)))"
diff --git a/.github/workflows/test-selenium.yaml b/.github/workflows/test-selenium.yaml
index 8827a32836..0cd0d3e62b 100644
--- a/.github/workflows/test-selenium.yaml
+++ b/.github/workflows/test-selenium.yaml
@@ -50,7 +50,9 @@ jobs:
uses: actions/cache@v3.3.1
with:
path: "/home/runner/repo-cache/"
- key: repo-cache
+ key: ${{ runner.os }}-repo-cache-${{ hashFiles('MODULE.bazel','WORKSPACE','bazel/bzlmod/secondary_umbrella.bzl') }}
+ restore-keys: |
+ ${{ runner.os }}-repo-cache-
- name: Configure Bazel
run: |
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml
index 9aceb026e7..10ddf4cf04 100644
--- a/.github/workflows/test.yaml
+++ b/.github/workflows/test.yaml
@@ -44,7 +44,9 @@ jobs:
uses: actions/cache@v3.3.1
with:
path: "/home/runner/repo-cache/"
- key: repo-cache
+ key: ${{ runner.os }}-repo-cache-${{ hashFiles('MODULE.bazel','WORKSPACE','bazel/bzlmod/secondary_umbrella.bzl') }}
+ restore-keys: |
+ ${{ runner.os }}-repo-cache-
- name: CONFIGURE BAZEL
run: |
if [ -n "${{ secrets.BUILDBUDDY_API_KEY }}" ]; then
@@ -96,7 +98,9 @@ jobs:
uses: actions/cache@v3.3.1
with:
path: "/home/runner/repo-cache/"
- key: repo-cache
+ key: ${{ runner.os }}-repo-cache-${{ hashFiles('MODULE.bazel','WORKSPACE','bazel/bzlmod/secondary_umbrella.bzl') }}
+ restore-keys: |
+ ${{ runner.os }}-repo-cache-
- name: CONFIGURE BAZEL
run: |
ERLANG_HOME="$(dirname $(dirname $(which erl)))"