mirror of
https://github.com/BinomialLLC/basis_universal.git
synced 2026-06-08 08:33:53 +00:00
68 lines
1.3 KiB
YAML
68 lines
1.3 KiB
YAML
---
|
|
|
|
image:
|
|
- macos
|
|
- Ubuntu2004
|
|
- Visual Studio 2019
|
|
|
|
configuration: Release
|
|
|
|
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:
|
|
# Linux
|
|
- path: bin/basisu
|
|
# MacOS
|
|
- path: bin/basisu
|
|
# Windows
|
|
- path: bin\$(CONFIGURATION)\basisu.exe
|