Skip to content

Commit

Permalink
Fix ccache saving on cache hit (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
Flamefire committed Jun 24, 2022
1 parent d4be7a4 commit 8e20aa1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,20 +126,23 @@ jobs:
fi
git config --global pack.threads 0
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
# For coverage builds fetch the whole history, else only 1 commit using a 'fake ternary'
fetch-depth: ${{ matrix.coverage && '0' || '1' }}

- name: Cache ccache
uses: actions/cache@v2
uses: actions/cache@v3
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
uses: actions/checkout@v3
with:
repository: boostorg/boost-ci
ref: master
Expand Down

0 comments on commit 8e20aa1

Please sign in to comment.