-
Notifications
You must be signed in to change notification settings - Fork 328
Expand file tree
/
Copy pathappveyor.yml
More file actions
67 lines (52 loc) · 1.29 KB
/
appveyor.yml
File metadata and controls
67 lines (52 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
---
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