GHA CI: only store compile cache on stable branches

Given the amount of PR and compile matrix, the CI cache size limit is
easy to hit. So for now on, only store compile cache for stable branches
to avoid cache thrashing.
This commit is contained in:
Chocobo1 2023-11-18 14:58:51 +08:00
parent 75feacb213
commit e99a012bb4
2 changed files with 2 additions and 0 deletions

View File

@ -46,6 +46,7 @@ jobs:
- name: Setup ccache
uses: Chocobo1/setup-ccache-action@v1
with:
store_cache: ${{ startsWith(github.ref, 'refs/heads/') }}
update_packager_index: false
- name: Install boost

View File

@ -40,6 +40,7 @@ jobs:
- name: Setup ccache
uses: Chocobo1/setup-ccache-action@v1
with:
store_cache: ${{ startsWith(github.ref, 'refs/heads/') }}
update_packager_index: false
ccache_options: |
max_size=2G