]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Add nmake to GitHub Actions CI.
authorNathan Moinvaziri <nathan@nathanm.com>
Wed, 26 Feb 2020 20:11:29 +0000 (12:11 -0800)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Fri, 13 Mar 2020 13:03:27 +0000 (14:03 +0100)
.github/workflows/nmake.yml [new file with mode: 0644]

diff --git a/.github/workflows/nmake.yml b/.github/workflows/nmake.yml
new file mode 100644 (file)
index 0000000..8b6790a
--- /dev/null
@@ -0,0 +1,39 @@
+name: CI NMake
+on: [push, pull_request]
+jobs:
+  ci-cmake:
+    name: ${{ matrix.name }}
+    runs-on: ${{ matrix.os }}
+    strategy:
+      fail-fast: false
+      matrix:
+        name: [
+          Windows 2019 NMake x86,
+          Windows 2019 NMake x64
+        ]
+        include:
+          - name: Windows 2019 NMake x86
+            os: windows-2019
+            makefile: win32/Makefile.msc
+            vc-vars: x86
+
+          - name: Windows 2019 NMake x64
+            os: windows-2019
+            makefile: win32/Makefile.msc
+            vc-vars: x86_amd64
+
+    steps:
+    - uses: actions/checkout@v1
+
+    - name: Compile source code
+      shell: cmd
+      run: |
+        call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" ${{ matrix.vc-vars }}
+        nmake -f ${{ matrix.makefile }}
+
+    - name: Run test cases
+      shell: cmd
+      run: |
+        call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" ${{ matrix.vc-vars }}
+        nmake -f ${{ matrix.makefile }} test
+        nmake -f ${{ matrix.makefile }} testdll