1
0
forked from boostorg/mpl

Fix ccache saving on cache hit (#66)

See boostorg/boost-ci#166
This commit is contained in:
Alexander Grund
2022-06-24 17:57:36 +02:00
committed by GitHub
parent 8f10d06b96
commit db09fb1dce

View File

@@ -131,20 +131,23 @@ jobs:
fi fi
git config --global pack.threads 0 git config --global pack.threads 0
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
# For coverage builds fetch the whole history, else only 1 commit using a 'fake ternary' # For coverage builds fetch the whole history, else only 1 commit using a 'fake ternary'
fetch-depth: ${{ matrix.coverage && '0' || '1' }} fetch-depth: ${{ matrix.coverage && '0' || '1' }}
- name: Cache ccache - name: Cache ccache
uses: actions/cache@v2 uses: actions/cache@v3
if: env.B2_USE_CCACHE if: env.B2_USE_CCACHE
with: with:
path: ~/.ccache 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 - name: Fetch Boost.CI
uses: actions/checkout@v2 uses: actions/checkout@v3
with: with:
repository: boostorg/boost-ci repository: boostorg/boost-ci
ref: master ref: master