Skip to content

Commit 937e9d3

Browse files
committed
meson: add Windows CI
There are a couple of oddities here. We don't attempt to build e.g. contrib, because that doesn't seem to work at the moment. Also notice that each command is its own step. This happens because github actions runs in powershell, which doesn't seem to let you abort on the first failure.
1 parent 7f29c18 commit 937e9d3

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/dev-short-tests.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,27 @@ jobs:
202202
meson test -C builddir/ --print-errorlogs
203203
meson install -C builddir --destdir staging/
204204
205+
meson-windows:
206+
runs-on: windows-latest
207+
steps:
208+
- uses: actions/checkout@v3
209+
- name: Install packages
210+
run: pip install --pre meson
211+
- name: Initialize the MSVC dev command prompt
212+
uses: ilammy/msvc-dev-cmd@674ff850cbd739c402260838fa45b7114f750570
213+
- name: Configure with Meson
214+
run: |
215+
meson setup build/meson/ builddir/ -Dbin_tests=true
216+
- name: Build with Meson
217+
run: |
218+
ninja -C builddir/
219+
- name: Test with Meson
220+
run: |
221+
meson test -C builddir/ --print-errorlogs
222+
- name: Install with Meson
223+
run: |
224+
meson install -C builddir --destdir staging/
225+
205226
cmake-visual-2019:
206227
runs-on: windows-2019
207228
strategy:

0 commit comments

Comments
 (0)