CI: Rework Windows build jobs to use nmake rather than Visual Studio solution.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml
index 51111d3..20da207 100644
--- a/.github/workflows/ci-build.yml
+++ b/.github/workflows/ci-build.yml
@@ -43,26 +43,32 @@ jobs:
# Windows builds.
#
- # We build 32-bit Release and 64-bit Debug build (complete matrix would
- # likely be an overkill).
- #
- # FIXME: If possible we should also run our tests on Windows.
+ # We do both 32 and 64-bit builds. Also note 32-bit does Debug build while
+ # 64-bit one does Release build. (Full matrix would likely be an overkill.)
windows-32-debug:
runs-on: windows-latest
steps:
- - uses: actions/checkout@v4
- - uses: microsoft/setup-msbuild@v1.3.1
+ - name: Checkout
+ uses: actions/checkout@v4
+ - name: Dev command prompt
+ uses: ilammy/msvc-dev-cmd@v1
+ with:
+ arch: x86
- name: Configure
- run: cmake -DCMAKE_BUILD_TYPE=Release -G "Visual Studio 17 2022" -A Win32 .
+ run: cmake -DCMAKE_BUILD_TYPE=Debug -G "NMake Makefiles" .
- name: Build
- run: msbuild.exe md4c.sln /p:Configuration=Release /p:Platform=Win32
+ run: nmake
windows-64-release:
runs-on: windows-latest
steps:
- - uses: actions/checkout@v4
- - uses: microsoft/setup-msbuild@v1.3.1
+ - name: Checkout
+ uses: actions/checkout@v4
+ - name: Dev command prompt
+ uses: ilammy/msvc-dev-cmd@v1
+ with:
+ arch: x64
- name: Configure
- run: cmake -DCMAKE_BUILD_TYPE=Debug -G "Visual Studio 17 2022" -A x64 .
+ run: cmake -DCMAKE_BUILD_TYPE=Release -G "NMake Makefiles" .
- name: Build
- run: msbuild.exe md4c.sln /p:Configuration=Debug /p:Platform=x64
+ run: nmake