Skip to content

Commit f7956e0

Browse files
authored
[ci] Update CI workflow to include main/master branch and check label 'pr: run ci' in PR
1 parent fb2a460 commit f7956e0

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,21 @@ name: CI
22

33
on:
44
push:
5+
branches:
6+
- main
7+
- master
58

69
jobs:
710
build-and-test:
811
name: Run on ${{ matrix.os }} with SOFA ${{ matrix.sofa_branch }}
12+
if: >
13+
github.event_name == 'push' ||
14+
contains(github.event.pull_request.labels.*.name, 'pr: run ci')
915
runs-on: ${{ matrix.os }}
1016
strategy:
1117
fail-fast: false
1218
matrix:
13-
os: [ubuntu-22.04, windows-2022] #macos-14,
19+
os: [ubuntu-22.04, macos-14, windows-2022]
1420
sofa_branch: [master]
1521

1622
steps:

0 commit comments

Comments
 (0)