summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorUwe Klotz <uklotz@mixxx.org>2020-11-20 19:29:19 +0100
committerUwe Klotz <uklotz@mixxx.org>2020-11-20 19:29:19 +0100
commit1ce1570ed18e2df3bb1209eceeac2e31b1088817 (patch)
tree6e9f9b6f7740198cea97249720952492ac95d663 /.github
parent850a3d3958bedeffb8778576b0c7e52cd2310095 (diff)
GitHub CI: Partition cache by matrix.os instead of runner.os
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml12
1 files changed, 6 insertions, 6 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 4b22a879de..1cb39414cb 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -88,10 +88,10 @@ jobs:
uses: actions/cache@v2
with:
path: ~/.ccache
- key: ${{ runner.os }}-ccache-${{ github.head_ref }}-${{ github.run_number }}
+ key: ${{ matrix.os }}-ccache-${{ github.head_ref }}-${{ github.run_number }}
restore-keys: |
- ${{ runner.os }}-ccache-${{ github.head_ref }}
- ${{ runner.os }}-ccache
+ ${{ matrix.os }}-ccache-${{ github.head_ref }}
+ ${{ matrix.os }}-ccache
- name: Preconfigure Ubuntu 18.04
if: matrix.os == 'ubuntu-18.04'
@@ -144,10 +144,10 @@ jobs:
cache-name: ccache
with:
path: /Users/runner/Library/Caches/ccache
- key: ${{ runner.os }}-ccache-${{ github.head_ref }}-${{ github.run_number }}
+ key: ${{ matrix.os }}-ccache-${{ github.head_ref }}-${{ github.run_number }}
restore-keys: |
- ${{ runner.os }}-ccache-${{ github.head_ref }}
- ${{ runner.os }}-ccache
+ ${{ matrix.os }}-ccache-${{ github.head_ref }}
+ ${{ matrix.os }}-ccache
- name: read build environment file
id: read_build_environment_file
run: |