Skip to content

Commit 5227b64

Browse files
committed
Build cache for master.
1 parent d128d7e commit 5227b64

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/builds.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: Build GDExtension
22
on:
33
workflow_call:
44
push:
5+
branches:
6+
- master
57
tags:
68
- v[0-9]+.[0-9]+.[0-9]+**
79

@@ -68,6 +70,7 @@ jobs:
6870
with:
6971
path: ${{ github.workspace }}/.scons-cache/
7072
key: ${{ matrix.target.platform }}_${{ matrix.target.arch }}_${{ matrix.float-precision }}_${{ matrix.target-type }}_cache
73+
7174
- name: Build GDExtension Debug Build
7275
shell: sh
7376
env:
@@ -100,6 +103,7 @@ jobs:
100103
101104
# Upload the build
102105
- name: Upload Artifact
106+
if: ${{github.ref != 'refs/heads/master'}}
103107
uses: actions/upload-artifact@v4
104108
with:
105109
name: gdhtml-${{ matrix.target.platform }}-${{ matrix.target.arch }}-${{ matrix.float-precision }}-${{ matrix.target-type }}
@@ -108,6 +112,7 @@ jobs:
108112
109113
# Merges all the build artifacts together into a single gdhtml artifact.
110114
merge:
115+
if: ${{github.ref != 'refs/heads/master'}}
111116
runs-on: ubuntu-22.04
112117
needs: build
113118
steps:
@@ -119,6 +124,7 @@ jobs:
119124
delete-merged: true
120125

121126
release:
127+
if: ${{github.ref != 'refs/heads/master'}}
122128
permissions: write-all
123129
runs-on: ubuntu-22.04
124130
needs: merge

0 commit comments

Comments
 (0)