From 6a4b1b9727c7caeba89b8537da08160d83c58de3 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Sun, 30 Nov 2025 19:37:26 +0800 Subject: [PATCH] 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. --- .github/workflows/ci_macos.yaml | 2 +- .github/workflows/ci_ubuntu.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci_macos.yaml b/.github/workflows/ci_macos.yaml index 0172dffac..916e4035f 100644 --- a/.github/workflows/ci_macos.yaml +++ b/.github/workflows/ci_macos.yaml @@ -49,7 +49,7 @@ jobs: - name: Setup ccache uses: Chocobo1/setup-ccache-action@v1 with: - store_cache: ${{ github.ref == 'refs/heads/master' }} + store_cache: ${{ (github.repository != 'qbittorrent/qBittorrent') || (github.ref == 'refs/heads/master') }} update_packager_index: false ccache_options: | max_size=1G diff --git a/.github/workflows/ci_ubuntu.yaml b/.github/workflows/ci_ubuntu.yaml index ad9868564..f30879aa0 100644 --- a/.github/workflows/ci_ubuntu.yaml +++ b/.github/workflows/ci_ubuntu.yaml @@ -44,7 +44,7 @@ jobs: - name: Setup ccache uses: Chocobo1/setup-ccache-action@v1 with: - store_cache: ${{ github.ref == 'refs/heads/master' }} + store_cache: ${{ (github.repository != 'qbittorrent/qBittorrent') || (github.ref == 'refs/heads/master') }} update_packager_index: false ccache_options: | max_size=1G