Use compiler hash instead of volatile mtime for macOS ccache

The mtime is volatile in macOS jobs, causing cache misses.

As compiler binary is the same, use compiler's binary hash instead of its mtime.

See https://github.com/hendrikmuhs/ccache-action/issues/146

When upstream action is updated, this can be adapted
This commit is contained in:
Michał Janiszewski 2023-05-06 12:03:26 +02:00 committed by GitHub
parent 6f55454ae8
commit 21e15918a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -181,6 +181,10 @@ jobs:
uses: hendrikmuhs/ccache-action@v1
with:
key: ${{ matrix.cache_key }}
- name: Configure ccache
run: |
# See https://github.com/hendrikmuhs/ccache-action/issues/146
ccache --set-config=compiler_check=content
- name: Install GCC problem matcher
uses: ammaraskar/gcc-problem-matcher@master
- name: Build OpenRCT2