From b8aa68bc09c0f4b164293fffc6fc38110bcf3ac1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Tue, 7 May 2024 20:52:10 +0200 Subject: [PATCH 1/2] CI: Do not save the ccache for PRs (#14168) Resolves #14155 --- .github/workflows/push.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index e72cd8f77bf..3aeeed92d15 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -72,6 +72,7 @@ jobs: # job id, not the job name) key: "LINUX_X64_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}-${{hashFiles('main/php_version.h')}}" append-timestamp: false + save: ${{ github.event_name != 'pull_request' }} - name: ./configure uses: ./.github/actions/configure-x64 with: @@ -111,6 +112,7 @@ jobs: with: key: "${{github.job}}-${{hashFiles('main/php_version.h')}}" append-timestamp: false + save: ${{ github.event_name != 'pull_request' }} - name: ./configure uses: ./.github/actions/configure-macos with: From 402f3a923f8b9464f03b3e1e737bc77e70e6f91b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Tue, 7 May 2024 20:53:33 +0200 Subject: [PATCH 2/2] CI: Do not save the ccache for PRs (8.3+) see GH-14168 --- .github/workflows/nightly.yml | 1 + .github/workflows/push.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 210d9a7a232..771b409703a 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -801,6 +801,7 @@ jobs: with: key: "${{github.job}}-${{hashFiles('php/main/php_version.h')}}" append-timestamp: false + save: ${{ github.event_name != 'pull_request' }} - name: build PHP run: | cd php diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index c9e9bd3498f..8cda50542cc 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -225,6 +225,7 @@ jobs: with: key: "${{github.job}}-${{hashFiles('main/php_version.h')}}" append-timestamp: false + save: ${{ github.event_name != 'pull_request' }} - name: ./configure run: | set -x