SDL_image: ci: add cmake logs to artifacts

From f24b98210e01816d0ada36e79e766788f8dcc7e4 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Thu, 2 May 2024 02:22:55 +0200
Subject: [PATCH] ci: add cmake logs to artifacts

---
 .github/workflows/main.yml | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index da03617f..1a6e2c2a 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -168,15 +168,17 @@ jobs:
       run: |
         cmake --build build/ --target package
     - name: Upload artifacts
-      if: ${{ failure() && runner.os == 'Linux' }}
+      if: ${{ failure() }}
       uses: actions/upload-artifact@v3
       with:
-        name: "${{ matrix.platform.name }} artifacts"
+        if-no-files-found: ignore
+        name: "${{ matrix.platform.artifact }}-failure-artifacts"
         path: |
           build/*.bmp
           build/*.jpg
           build/*.png
-        if-no-files-found: ignore
+          build/CMakeCache.txt
+          build/CMakeFiles/*yaml
 
     - name: Verify CMake configuration files
       run: |