Skip to content

Commit 1ee4530

Browse files
committed
CI: Add macOS and Windows targets to gain clang/msvc warnings/errors.
1 parent 43bf31a commit 1ee4530

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/main.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ jobs:
6464
id: cpu-cores
6565
if: matrix.target == 'qvm'
6666

67+
- uses: ammaraskar/gcc-problem-matcher@0.3.0
68+
if: matrix.target != 'qvm'
69+
6770
- name: Checkout q3lcc
6871
uses: actions/checkout@v4
6972
with:
@@ -91,6 +94,34 @@ jobs:
9194
qwprogs.*
9295
compression-level: 9
9396

97+
verify-macos:
98+
runs-on: macos-latest
99+
timeout-minutes: 10
100+
steps:
101+
- name: Checkout
102+
uses: actions/checkout@v4
103+
104+
- uses: ammaraskar/gcc-problem-matcher@0.3.0
105+
106+
- name: Build
107+
run: |
108+
cmake -B builddir -S . -G Xcode -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64"
109+
cmake --build builddir --config Release --parallel
110+
111+
verify-msvc:
112+
runs-on: windows-latest
113+
timeout-minutes: 10
114+
steps:
115+
- name: Checkout
116+
uses: actions/checkout@v4
117+
118+
- uses: ammaraskar/msvc-problem-matcher@0.3.0
119+
120+
- name: Build
121+
run: |
122+
cmake -B builddir -S . -G "Visual Studio 17 2022"
123+
cmake --build builddir --config Release --parallel
124+
94125
upload:
95126
needs: build
96127
timeout-minutes: 10

0 commit comments

Comments
 (0)