From 65c8e112bdd5ba884b8a2a3393c638653efb81c4 Mon Sep 17 00:00:00 2001 From: Richard Geldreich Date: Sun, 23 Nov 2025 15:14:17 -0500 Subject: [PATCH] appveyor fixes to detect broken builds - hopefully --- appveyor.yml | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 9e35a55..ad9be95 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -11,19 +11,51 @@ environment: APPVEYOR_YML_DISABLE_PS_LINUX: true build_script: + # ============================ + # Windows (PowerShell) + # ============================ - ps: | New-Item -Path . -Name "build" -ItemType "directory" cd build + cmake --version + cmake ../ -DCMAKE_BUILD_TYPE:STRING="$env:CONFIGURATION" + if ($LASTEXITCODE -ne 0) { + Write-Host "ERROR: CMake configuration failed" + exit $LASTEXITCODE + } + cmake --build . --config $env:CONFIGURATION + if ($LASTEXITCODE -ne 0) { + Write-Host "ERROR: Build failed" + exit $LASTEXITCODE + } + cd ../ + + + # ============================ + # Linux + macOS (sh) + # ============================ - sh: | mkdir build cd build + cmake --version + cmake ../ -DCMAKE_BUILD_TYPE:STRING="${CONFIGURATION}" + if [ $? -ne 0 ]; then + echo "ERROR: CMake configuration failed" + exit 1 + fi + cmake --build . --config ${CONFIGURATION} + if [ $? -ne 0 ]; then + echo "ERROR: Build failed" + exit 1 + fi + cd ../ artifacts: @@ -32,4 +64,4 @@ artifacts: # MacOS - path: bin/basisu # Windows - - path: bin\$(configuration)\basisu.exe + - path: bin\$(CONFIGURATION)\basisu.exe