Skip to content

Commit

Permalink
Uses job name as part of ccache usage so each job has its own ccache
Browse files Browse the repository at this point in the history
  • Loading branch information
coldav committed Jan 8, 2025
1 parent f5846d3 commit 0ed8646
Show file tree
Hide file tree
Showing 3 changed files with 414 additions and 409 deletions.
7 changes: 5 additions & 2 deletions .github/actions/setup_build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ inputs:
description: 'Enable installing of clang-tidy (currently 19)'
type: boolean
default: false
cache_suffix:
description: 'suffix for caches so each job has its own'
default: 'build'

runs:
# We don't want a new docker just a list of steps, so mark as composite
Expand Down Expand Up @@ -131,7 +134,7 @@ runs:
- name: Setup ccache
uses: hendrikmuhs/ccache-action@ed74d11c0b343532753ecead8a951bb09bb34bc9 # v1.2.14
with:
max-size: 200M
key: ccache-build
max-size: 20M
key: ccache-${{ inputs.cache_suffix }}
variant: ccache
save: ${{ inputs.save }}
Loading

0 comments on commit 0ed8646

Please sign in to comment.