diff options
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/test-mixed-versions.yaml | 8 | ||||
-rw-r--r-- | .github/workflows/test-selenium.yaml | 4 | ||||
-rw-r--r-- | .github/workflows/test.yaml | 8 |
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)))" |