summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorDimitrios Apostolou <jimis@qt.io>2020-06-30 02:46:17 +0200
committerDimitrios Apostolou <jimis@qt.io>2020-06-30 15:21:05 +0200
commit04e1ae2308b9e5da9bc6f65ce3c9bcc3bd4b9c96 (patch)
tree5bf1819f8354c8e1af352ad4238bff26aaa4f70c /.github
parentd81d3d5f9261f885dff5e42bfac3dfad26a86b09 (diff)
Do not mix CCache artifacts between similar versions of same OS
+ runner.os is for example "macOS" + matrix.os would be "macos-10.15" This way we don't mix the CCache artifacts between different versions of the same OS. Change-Id: I90da8c1013d661ddddbc22d205af4858db057b14 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ninja-build.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/.github/workflows/ninja-build.yml b/.github/workflows/ninja-build.yml
index 214ec6db1e..b333e9f27a 100644
--- a/.github/workflows/ninja-build.yml
+++ b/.github/workflows/ninja-build.yml
@@ -66,14 +66,14 @@ jobs:
path: ~/.ccache
# "github.run_id" is unique, which causes the cache to always get
# saved at the end of a successful run.
- key: ccache-${{ runner.os }}-${{ github.ref }}-${{ github.run_id }}
+ key: ccache-${{ matrix.os }}-${{ github.ref }}-${{ github.run_id }}
# As the unique "key" above will never be found in the cache when the
# job starts, we need these broader "restore-keys" in order to match
# and restore the most recent cache.
restore-keys: |
- ccache-${{ runner.os }}-${{ github.ref }}-
- ccache-${{ runner.os }}-refs/heads/dev-
- ccache-${{ runner.os }}-
+ ccache-${{ matrix.os }}-${{ github.ref }}-
+ ccache-${{ matrix.os }}-refs/heads/dev-
+ ccache-${{ matrix.os }}-
- name: install build dependencies
run: ${{ matrix.install_cmd }} ${{ matrix.deps }} ${{ matrix.install_cmd_postfix }}