There was an error while loading. Please reload this page.
1 parent 8242de8 commit 4c09a60Copy full SHA for 4c09a60
1 file changed
.github/workflows/build.yml
@@ -6,14 +6,20 @@ jobs:
6
build:
7
strategy:
8
matrix:
9
- os: [ubuntu-latest]
10
include:
+ - os: ubuntu-latest
11
+ run_on_main: false
12
- os: windows-latest
13
run_on_main: true
14
runs-on: ${{ matrix.os }}
- if: ${{ matrix.run_on_main != true || github.ref == 'refs/heads/main' }}
15
16
steps:
17
+ - name: 🧩 Skip Windows on non-main branches
18
+ if: ${{ matrix.run_on_main && github.ref != 'refs/heads/main' }}
19
+ run: |
20
+ echo "Skipping Windows build on non-main branch."
21
+ exit 0
22
+
23
- name: 1️⃣ Checkout repository 🛎️
24
uses: actions/checkout@v4
25
0 commit comments