github: split mingw-no-asm job
authorChristopher Degawa <ccom@randomderp.com>
Thu, 5 Oct 2023 00:02:04 +0000 (19:02 -0500)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Thu, 5 Oct 2023 22:44:15 +0000 (16:44 -0600)
Splits the mingw-no-asm job into an explicit -D USE_MASM=OFF and one
without to test the automatic detection of MASM.

Signed-off-by: Christopher Degawa <ccom@randomderp.com>
.github/workflows/build.yml

index 003ed3e32b7ce333c2cb2e738a35b31c8594caf9..ce4ba5c930643b6259c892a2fba8981bc90b161e 100644 (file)
@@ -455,6 +455,38 @@ jobs:
           run: ccache --show-stats
 
     mingw-no-asm:
+      runs-on: windows-2022
+      defaults:
+        run:
+          shell: bash
+      steps:
+        - uses: actions/checkout@v3
+        - name: Setup ccache
+          uses: hendrikmuhs/ccache-action@v1.2
+          with:
+            key: mingw-ccache
+        - uses: actions/setup-python@v4
+          with:
+            python-version: '3.8'
+        - uses: lukka/get-cmake@latest
+        - name: GCC Version
+          run: gcc --version # If this fails MINGW is not setup correctly
+        - name: Configure
+          # Make sure this doesn't fail even without -D USE_MASM=OFF and without uasm
+          run: cmake -S. -B build -D UPDATE_DEPS=ON -D CMAKE_BUILD_TYPE=Release
+          env:
+            LDFLAGS: -fuse-ld=lld # MINGW linking is very slow. Use llvm linker instead.
+            CMAKE_C_COMPILER_LAUNCHER: ccache
+            CMAKE_CXX_COMPILER_LAUNCHER: ccache
+            CMAKE_GENERATOR: Ninja
+        - name: Build
+          run: cmake --build build -- --quiet
+        - name: Install
+          run: cmake --install build --prefix build/install
+        - name: MinGW ccache stats # The Post Setup ccache doesn't work right on MinGW
+          run: ccache --show-stats
+
+    mingw-no-asm-explicit:
       runs-on: windows-2022
       defaults:
         run: