Skip to content

Commit 3973317

Browse files
committed
CI: add windows msvc build
1 parent 4dc9609 commit 3973317

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/c-cpp.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,38 @@ on:
88

99
permissions: read-all
1010

11+
jobs:
12+
build-windows-msvc:
13+
runs-on: windows-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
# Set up MSVC environment
19+
- name: Set up MSVC Developer Command Prompt
20+
uses: ilammy/msvc-dev-cmd@v1
21+
with:
22+
arch: x64
23+
24+
# Install Python (Meson requires it)
25+
- name: Set up Python
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version: '3.x'
29+
30+
# Install Meson and Ninja
31+
- name: Install Meson + Ninja
32+
run: |
33+
python -m pip install --upgrade pip
34+
pip install meson ninja
35+
36+
# Configure and build with Meson (MSVC will be used automatically)
37+
- name: Configure (Meson)
38+
run: meson setup --warnlevel 2 --buildtype release builddir --backend=ninja
39+
40+
- name: Build (Ninja)
41+
run: ninja -C builddir
42+
1143
jobs:
1244
SKL-gcc9:
1345

0 commit comments

Comments
 (0)