Skip to content

Commit

Permalink
CI: Keep ccache for compilation with and without OpenMP separate
Browse files Browse the repository at this point in the history
  • Loading branch information
mmuetzel committed Sep 12, 2023
1 parent 299427f commit 006c81e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ jobs:
shell: msys2 {0}
run: |
echo "ccachedir=$(cygpath -m $(${CCACHE} -k cache_dir))" >> $GITHUB_OUTPUT
echo "key=ccache:msvc:${{ github.ref }}:$(date +"%Y-%m-%d_%H-%M-%S"):${{ github.sha }}" >> $GITHUB_OUTPUT
echo "key=ccache:msvc:${{ matrix.openmp }}:${{ github.ref }}:$(date +"%Y-%m-%d_%H-%M-%S"):${{ github.sha }}" >> $GITHUB_OUTPUT
- name: restore ccache
# Setup the GitHub cache used to maintain the ccache from one job to the next
Expand All @@ -572,8 +572,8 @@ jobs:
key: ${{ steps.ccache-prepare.outputs.key }}
# Prefer caches from the same branch. Fall back to caches from the dev branch.
restore-keys: |
ccache:msvc:${{ github.ref }}
ccache:msvc
ccache:msvc:${{ matrix.openmp }}:${{ github.ref }}
ccache:msvc:${{ matrix.openmp }}
- name: configure ccache
# Limit the maximum size and switch on compression to avoid exceeding the total disk or cache quota.
Expand Down

0 comments on commit 006c81e

Please sign in to comment.