Skip to content

Commit 050f106

Browse files
CI: only build once for pull requests, manual trigger for branches.
1 parent 0ce93c9 commit 050f106

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
# Note: can't use build matrix because our steps are not cross-platform...
21
name: CI
32

4-
on: [push, pull_request]
3+
# Avoid duplicate builds for pull requests, allow manual trigger.
4+
on:
5+
push:
6+
branches: [ main ]
7+
pull_request:
8+
workflow_dispatch:
59

610
defaults:
711
run:

0 commit comments

Comments
 (0)