Skip to content

Commit 39cc4a6

Browse files
committed
Prevent PR builds from trashing our build caches
This requires flatpak/flatpak-github-actions#260 to be merged first.
1 parent 17be527 commit 39cc4a6

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ on:
1414
ref:
1515
type: string
1616
required: true
17+
save_cache:
18+
type: boolean
19+
default: false
1720
secrets:
1821
AZURE_CLIENT_ID:
1922
required: false
@@ -708,6 +711,7 @@ jobs:
708711
with:
709712
manifest-path: packaging/flatpak/org.mixxx.Mixxx.yaml
710713
arch: ${{ matrix.variant.arch }}
714+
save-cache: ${{ inputs.save_cache }}
711715
build-bundle: false
712716
upload-artifact: false
713717

.github/workflows/develop.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ jobs:
7575
with:
7676
branch: ${{ github.head_ref || github.ref_name }}
7777
ref: ${{ github.ref }}
78+
save_cache: false
7879

7980
# This task is used as a probe for auto merge
8081
# In the future, it could also be used to perform a status update (e.g once the whole CI is passing + is ready for review, add a specific label such as `need review`)

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
publish: true
3333
branch: ${{ github.head_ref || github.ref_name }}
3434
ref: ${{ github.ref }}
35+
save_cache: true
3536
secrets:
3637
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
3738
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}

0 commit comments

Comments
 (0)