mirror of
https://github.com/BinomialLLC/basis_universal.git
synced 2026-06-08 00:23:52 +00:00
49 lines
947 B
YAML
49 lines
947 B
YAML
---
|
|
|
|
image:
|
|
- macos
|
|
- Ubuntu2004
|
|
- Visual Studio 2019
|
|
|
|
configuration: Release
|
|
|
|
environment:
|
|
APPVEYOR_YML_DISABLE_PS_LINUX: true
|
|
|
|
install:
|
|
- sh: |
|
|
if [ "$(uname)" != "Darwin" ]; then
|
|
sudo apt-get update -y
|
|
sudo apt-get install -y dos2unix recode
|
|
fi
|
|
|
|
build_script:
|
|
- ps: |
|
|
New-Item -Path . -Name "build" -ItemType "directory"
|
|
cd build
|
|
cmake --version
|
|
cmake ../ -DCMAKE_BUILD_TYPE:STRING="$env:CONFIGURATION"
|
|
cmake --build . --config $env:CONFIGURATION
|
|
cd ../
|
|
- sh: |
|
|
mkdir build
|
|
cd build
|
|
cmake --version
|
|
cmake ../ -DCMAKE_BUILD_TYPE:STRING="${CONFIGURATION}"
|
|
cmake --build . --config ${CONFIGURATION}
|
|
cd ../
|
|
|
|
test_script:
|
|
- sh: |
|
|
if [ "$(uname)" != "Darwin" ]; then
|
|
bash ./format.sh
|
|
fi
|
|
|
|
artifacts:
|
|
# Linux
|
|
- path: bin/basisu
|
|
# MacOS
|
|
- path: bin_osx/basisu
|
|
# Windows
|
|
- path: bin\$(configuration)\basisu.exe
|