Added Windows static build to the CI
authorJohan Mabille <johan.mabille@gmail.com>
Fri, 16 Sep 2022 08:13:27 +0000 (10:13 +0200)
committerJohan Mabille <johan.mabille@gmail.com>
Fri, 16 Sep 2022 08:13:27 +0000 (10:13 +0200)
.github/workflows/main.yml

index 35667af8e505dafcb352b168e4e2fabbd42565da..95d43e51d9424e0d8132f48c8b9bd35a5f16baf4 100644 (file)
@@ -80,6 +80,33 @@ jobs:
           cd builddir
           ninja test
 
+  windows-static:
+    runs-on: windows-latest
+
+    name: Compile and run tests (windows-latest-static)
+    steps:
+      - uses: actions/checkout@v2
+
+      - uses: actions/setup-python@v1
+        with:
+          python-version: '3.x'
+
+      - name: Install meson and ninja
+        run: pip install meson ninja
+
+      - name: Compile zchunk
+        shell: cmd /C CALL {0}
+        run: |
+          meson setup builddir --default-library=static
+          meson compile -C builddir
+
+      - name: Run zchunk tests
+        shell: cmd /C CALL {0}
+        run: |
+          cd builddir
+          ninja test
+
+
   macos:
     runs-on: macos-latest