File tree Expand file tree Collapse file tree 1 file changed +33
-1
lines changed
Expand file tree Collapse file tree 1 file changed +33
-1
lines changed Original file line number Diff line number Diff line change @@ -11,19 +11,51 @@ environment:
1111 APPVEYOR_YML_DISABLE_PS_LINUX : true
1212
1313build_script :
14+ # ============================
15+ # Windows (PowerShell)
16+ # ============================
1417 - ps : |
1518 New-Item -Path . -Name "build" -ItemType "directory"
1619 cd build
20+
1721 cmake --version
22+
1823 cmake ../ -DCMAKE_BUILD_TYPE:STRING="$env:CONFIGURATION"
24+ if ($LASTEXITCODE -ne 0) {
25+ Write-Host "ERROR: CMake configuration failed"
26+ exit $LASTEXITCODE
27+ }
28+
1929 cmake --build . --config $env:CONFIGURATION
30+ if ($LASTEXITCODE -ne 0) {
31+ Write-Host "ERROR: Build failed"
32+ exit $LASTEXITCODE
33+ }
34+
2035 cd ../
36+
37+
38+ # ============================
39+ # Linux + macOS (sh)
40+ # ============================
2141 - sh : |
2242 mkdir build
2343 cd build
44+
2445 cmake --version
46+
2547 cmake ../ -DCMAKE_BUILD_TYPE:STRING="${CONFIGURATION}"
48+ if [ $? -ne 0 ]; then
49+ echo "ERROR: CMake configuration failed"
50+ exit 1
51+ fi
52+
2653 cmake --build . --config ${CONFIGURATION}
54+ if [ $? -ne 0 ]; then
55+ echo "ERROR: Build failed"
56+ exit 1
57+ fi
58+
2759 cd ../
2860
2961artifacts :
@@ -32,4 +64,4 @@ artifacts:
3264 # MacOS
3365 - path : bin/basisu
3466 # Windows
35- - path : bin\$(configuration )\basisu.exe
67+ - path : bin\$(CONFIGURATION )\basisu.exe
You can’t perform that action at this time.
0 commit comments