mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-10 00:46:48 -06:00
GHA CI: enable ccache by default on forked repository
This change only affects forked repository. Previously ccache was only enabled on `master` branch regardless of the owner of the repository. This is not ideal for forked repository where the owner (mostly) wants to run the GHA CI to create binary for their own use and ccache couldn't be utilized. This change will enable ccache by default for all non-official repositories. PR #23558.
This commit is contained in:
parent
f2f4676824
commit
6a4b1b9727
2
.github/workflows/ci_macos.yaml
vendored
2
.github/workflows/ci_macos.yaml
vendored
@ -49,7 +49,7 @@ jobs:
|
|||||||
- name: Setup ccache
|
- name: Setup ccache
|
||||||
uses: Chocobo1/setup-ccache-action@v1
|
uses: Chocobo1/setup-ccache-action@v1
|
||||||
with:
|
with:
|
||||||
store_cache: ${{ github.ref == 'refs/heads/master' }}
|
store_cache: ${{ (github.repository != 'qbittorrent/qBittorrent') || (github.ref == 'refs/heads/master') }}
|
||||||
update_packager_index: false
|
update_packager_index: false
|
||||||
ccache_options: |
|
ccache_options: |
|
||||||
max_size=1G
|
max_size=1G
|
||||||
|
|||||||
2
.github/workflows/ci_ubuntu.yaml
vendored
2
.github/workflows/ci_ubuntu.yaml
vendored
@ -44,7 +44,7 @@ jobs:
|
|||||||
- name: Setup ccache
|
- name: Setup ccache
|
||||||
uses: Chocobo1/setup-ccache-action@v1
|
uses: Chocobo1/setup-ccache-action@v1
|
||||||
with:
|
with:
|
||||||
store_cache: ${{ github.ref == 'refs/heads/master' }}
|
store_cache: ${{ (github.repository != 'qbittorrent/qBittorrent') || (github.ref == 'refs/heads/master') }}
|
||||||
update_packager_index: false
|
update_packager_index: false
|
||||||
ccache_options: |
|
ccache_options: |
|
||||||
max_size=1G
|
max_size=1G
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user