]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
meson: add Windows CI
authorEli Schwartz <eschwartz@archlinux.org>
Thu, 15 Dec 2022 02:57:59 +0000 (21:57 -0500)
committerEli Schwartz <eschwartz@archlinux.org>
Fri, 16 Dec 2022 19:35:22 +0000 (14:35 -0500)
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.

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

index 423134fc2fb0b53758ae5b20e9b58e929023c510..d4d8f13fdc0ebd581bdda88e7b43e2bbcce90bc6 100644 (file)
@@ -202,6 +202,27 @@ jobs:
           meson test -C builddir/ --print-errorlogs
           meson install -C builddir --destdir staging/
 
+  meson-windows:
+    runs-on: windows-latest
+    steps:
+      - uses: actions/checkout@v3
+      - name: Install packages
+        run: pip install --pre meson
+      - name: Initialize the MSVC dev command prompt
+        uses: ilammy/msvc-dev-cmd@674ff850cbd739c402260838fa45b7114f750570
+      - name: Configure with Meson
+        run: |
+          meson setup build/meson/ builddir/ -Dbin_tests=true
+      - name: Build with Meson
+        run: |
+          ninja -C builddir/
+      - name: Test with Meson
+        run: |
+          meson test -C builddir/ --print-errorlogs
+      - name: Install with Meson
+        run: |
+          meson install -C builddir --destdir staging/
+
   cmake-visual-2019:
     runs-on: windows-2019
     strategy: