Skip to content

Commit 4c09a60

Browse files
committed
Fix main condition
1 parent 8242de8 commit 4c09a60

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,20 @@ jobs:
66
build:
77
strategy:
88
matrix:
9-
os: [ubuntu-latest]
109
include:
10+
- os: ubuntu-latest
11+
run_on_main: false
1112
- os: windows-latest
1213
run_on_main: true
1314
runs-on: ${{ matrix.os }}
14-
if: ${{ matrix.run_on_main != true || github.ref == 'refs/heads/main' }}
1515

1616
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+
1723
- name: 1️⃣ Checkout repository 🛎️
1824
uses: actions/checkout@v4
1925

0 commit comments

Comments
 (0)