Run CI on Windows
authorWolf Vollprecht <w.vollprecht@gmail.com>
Tue, 4 Jan 2022 17:59:17 +0000 (18:59 +0100)
committerWolf Vollprecht <w.vollprecht@gmail.com>
Fri, 7 Jan 2022 09:08:36 +0000 (10:08 +0100)
.github/environment.yml
.github/workflows/main.yml

index 82065313e2c6f38113b723f5c36c758a09125181..92d7114bc2a2eb57ec16c5ab81022d6d49e1dad1 100644 (file)
@@ -10,3 +10,4 @@ dependencies:
 - pkg-config
 - openssl
 - sel(osx): argp-standalone
+- sel(win): cmake
\ No newline at end of file
index 2600766e19a27cf62cdf34db831a1dc377b51cfd..d33adad359f21d0d9081d19f45eeeb5e43025d67 100644 (file)
@@ -13,7 +13,7 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        os: [ubuntu-latest, macos-latest]
+        os: [ubuntu-latest, macos-latest, windows-latest]
 
     name: Compile and Run Tests
     steps:
@@ -24,12 +24,29 @@ jobs:
           environment-file: .github/environment.yml
       - name: Compile zchunk
         shell: bash -l {0}
+        if: runner.os != 'Windows'
         run: |
           meson builddir
           cd builddir
           ninja
       - name: Run zchunk tests
         shell: bash -l {0}
+        if: runner.os != 'Windows'
         run: |
           cd builddir
           ninja test
+      - name: Compile zchunk
+        shell: cmd /C CALL {0}
+        if: runner.os == 'Windows'
+        run: |
+          CALL micromamba activate zchunk_test_env
+          meson setup builddir
+          meson compile -C builddir
+      # TODO tests are not yet built
+      # - name: Run zchunk tests
+      #   shell: cmd /C CALL {0}
+      #   if: runner.os == 'Windows'
+      #   run: |
+      #     micromamba activate zchunk_test_env
+      #     cd builddir
+      #     ninja test