Skip to content

Commit

Permalink
workflows: compile and run unit tests on MSVC (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
bgilbert authored Oct 3, 2023
1 parent d7877f7 commit cd39812
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/run_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
cc: clang
- os: windows-latest
cc: clang
- os: windows-latest
cc: cl
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -58,13 +60,21 @@ jobs:
sudo=sudo
;;
windows*)
# Ignore unused parameter warnings from check.h
export CFLAGS=-Wno-unused-parameter
# https://github.com/mesonbuild/meson/issues/10022
export CC_LD=lld-link
case "${{ matrix.cc }}" in
cl)
# ignore CK_DIAGNOSTIC_POP warnings in check
setup_args="--vsenv -Dcheck:werror=false"
;;
clang)
# Ignore unused parameter warnings from check.h
export CFLAGS=-Wno-unused-parameter
# https://github.com/mesonbuild/meson/issues/10022
export CC_LD=lld-link
;;
esac
;;
esac
meson setup builddir --werror
meson setup builddir --werror $setup_args
meson compile -C builddir
$sudo meson install -C builddir
Expand Down

0 comments on commit cd39812

Please sign in to comment.