Skip to content

Commit cd39812

Browse files
authored
workflows: compile and run unit tests on MSVC (#67)
1 parent d7877f7 commit cd39812

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

.github/workflows/run_unit_tests.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
cc: clang
2121
- os: windows-latest
2222
cc: clang
23+
- os: windows-latest
24+
cc: cl
2325
steps:
2426
- uses: actions/checkout@v4
2527

@@ -58,13 +60,21 @@ jobs:
5860
sudo=sudo
5961
;;
6062
windows*)
61-
# Ignore unused parameter warnings from check.h
62-
export CFLAGS=-Wno-unused-parameter
63-
# https://github.com/mesonbuild/meson/issues/10022
64-
export CC_LD=lld-link
63+
case "${{ matrix.cc }}" in
64+
cl)
65+
# ignore CK_DIAGNOSTIC_POP warnings in check
66+
setup_args="--vsenv -Dcheck:werror=false"
67+
;;
68+
clang)
69+
# Ignore unused parameter warnings from check.h
70+
export CFLAGS=-Wno-unused-parameter
71+
# https://github.com/mesonbuild/meson/issues/10022
72+
export CC_LD=lld-link
73+
;;
74+
esac
6575
;;
6676
esac
67-
meson setup builddir --werror
77+
meson setup builddir --werror $setup_args
6878
meson compile -C builddir
6979
$sudo meson install -C builddir
7080

0 commit comments

Comments
 (0)