Skip to content

Commit

Permalink
github: encode matrix.enables in cache key
Browse files Browse the repository at this point in the history
as matrix.enables controls how the tree is configured, so we should
take it into consideration, otherwise the hit rate of cache would be
lower than expected.

Signed-off-by: Kefu Chai <[email protected]>

Closes #2228
  • Loading branch information
tchaikov authored and xemul committed May 15, 2024
1 parent 31f3303 commit 169831e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ jobs:
- name: Setup ccache
uses: hendrikmuhs/ccache-action@v1
with:
key: ${{ matrix.compiler }}-${{ matrix.standard }}-${{ matrix.mode }}
key: ${{ matrix.compiler }}-${{ matrix.standard }}-${{ matrix.mode }}-${{ matrix.enables }}

- name: Configure
run: >
Expand Down

0 comments on commit 169831e

Please sign in to comment.