Skip to content

Commit b4dc957

Browse files
authored
chore(ci): run on feat/* and fix/* (#95)
1 parent 6195004 commit b4dc957

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@ name: Build
22

33
on:
44
push:
5-
branches: ["master"]
5+
branches:
6+
- "master"
7+
- "feat/**"
8+
- "fix/**"
9+
tags:
10+
- "v*.*.*" # Semantic version tags
611
pull_request:
712
branches: ["master"]
813

@@ -118,6 +123,12 @@ jobs:
118123
# Build guest programs in parallel using matrix
119124
build-guest:
120125
runs-on: ubuntu-latest
126+
# Run on main branches, release branches, or when explicitly requested
127+
if: |
128+
github.ref == 'refs/heads/master' ||
129+
startsWith(github.ref, 'refs/heads/release/') ||
130+
startsWith(github.ref, 'refs/tags/v') ||
131+
contains(github.event.pull_request.labels.*.name, 'full-build')
121132
strategy:
122133
matrix:
123134
guest: [
@@ -182,4 +193,3 @@ jobs:
182193
name: all-guests
183194
path: output/
184195
retention-days: 7
185-

0 commit comments

Comments
 (0)