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>
This commit is contained in:
parent
d81d3d5f92
commit
04e1ae2308
8
.github/workflows/ninja-build.yml
vendored
8
.github/workflows/ninja-build.yml
vendored
@ -66,14 +66,14 @@ jobs:
|
|||||||
path: ~/.ccache
|
path: ~/.ccache
|
||||||
# "github.run_id" is unique, which causes the cache to always get
|
# "github.run_id" is unique, which causes the cache to always get
|
||||||
# saved at the end of a successful run.
|
# 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
|
# 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
|
# job starts, we need these broader "restore-keys" in order to match
|
||||||
# and restore the most recent cache.
|
# and restore the most recent cache.
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
ccache-${{ runner.os }}-${{ github.ref }}-
|
ccache-${{ matrix.os }}-${{ github.ref }}-
|
||||||
ccache-${{ runner.os }}-refs/heads/dev-
|
ccache-${{ matrix.os }}-refs/heads/dev-
|
||||||
ccache-${{ runner.os }}-
|
ccache-${{ matrix.os }}-
|
||||||
|
|
||||||
- name: install build dependencies
|
- name: install build dependencies
|
||||||
run: ${{ matrix.install_cmd }} ${{ matrix.deps }} ${{ matrix.install_cmd_postfix }}
|
run: ${{ matrix.install_cmd }} ${{ matrix.deps }} ${{ matrix.install_cmd_postfix }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user