Skip to content

Commit da472c7

Browse files
committed
Make caches depend on C++ standard
1 parent 3294e67 commit da472c7

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/reusable.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -547,12 +547,14 @@ jobs:
547547
fetch-depth: ${{ matrix.coverage && '0' || '1' }}
548548

549549
- name: Cache ccache
550-
uses: actions/cache@2c8a9bd7457de244a408f35966fab2fb45fda9c8 # v6.0.0
550+
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
551551
if: env.B2_USE_CCACHE
552552
with:
553553
path: ~/.ccache
554-
key: ${{matrix.os}}-${{matrix.container}}-${{matrix.xcode_app}}${{matrix.compiler}}-${{github.sha}}
555-
restore-keys: ${{matrix.os}}-${{matrix.container}}-${{matrix.xcode_app}}${{matrix.compiler}}-
554+
key: ${{matrix.os}}-${{matrix.container}}-${{matrix.xcode_app}}${{matrix.compiler}}-${{matrix.cxxstd}}-${{github.sha}}
555+
restore-keys: |
556+
${{matrix.os}}-${{matrix.container}}-${{matrix.xcode_app}}${{matrix.compiler}}-${{matrix.cxxstd}}-
557+
${{matrix.os}}-${{matrix.container}}-${{matrix.xcode_app}}${{matrix.compiler}}-
556558
557559
- name: Fetch Boost.CI
558560
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0

0 commit comments

Comments
 (0)