From 37c9bddf0bdefaaae0ca5852c1a153d9fc43f278 Mon Sep 17 00:00:00 2001 From: Alexander Grund Date: Thu, 10 Nov 2022 06:13:13 +0100 Subject: [PATCH] Fix ccache saving on cache hit (#39) See boostorg/boost-ci#166 --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8cdf0d1..2b23330 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -141,7 +141,10 @@ jobs: if: env.B2_USE_CCACHE with: path: ~/.ccache - key: ${{matrix.os}}-${{matrix.container}}-${{matrix.compiler}} + key: ${{matrix.os}}-${{matrix.container}}-${{matrix.compiler}}-${{github.sha}} + restore-keys: | + ${{matrix.os}}-${{matrix.container}}-${{matrix.compiler}}- + ${{matrix.os}}-${{matrix.container}}-${{matrix.compiler}} - name: Fetch Boost.CI uses: actions/checkout@v2