From: Nathan Moinvaziri Date: Wed, 26 Feb 2020 20:11:29 +0000 (-0800) Subject: Add nmake to GitHub Actions CI. X-Git-Tag: 1.9.9-b1~341 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bde2a4f9028610cbf27856c7c5e29cab409aa844;p=thirdparty%2Fzlib-ng.git Add nmake to GitHub Actions CI. --- diff --git a/.github/workflows/nmake.yml b/.github/workflows/nmake.yml new file mode 100644 index 000000000..8b6790a71 --- /dev/null +++ b/.github/workflows/nmake.yml @@ -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