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:
Dimitrios Apostolou 2020-06-30 02:46:17 +02:00
parent d81d3d5f92
commit 04e1ae2308

View File

@ -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 }}