forked from tsoding/nothing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
40 lines (40 loc) · 1.3 KB
/
appveyor.yml
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
image:
- ubuntu1804
- Visual Studio 2015
environment: # enable mingw build on windows image
MSYSTEM: MINGW64
CHERE_INVOKING: 1
matrix:
- BUILD_TYPE: mingw
- BUILD_TYPE: other
matrix:
exclude: # no mingw build on linux
- image: ubuntu1804
BUILD_TYPE: mingw
install:
- ps: |
if ($isWindows) {
if ($env:BUILD_TYPE -eq 'mingw') {
cmd /C 'curl -fsSL -o SDL2-devel-2.0.10-mingw.tar.gz https://www.libsdl.org/release/SDL2-devel-2.0.10-mingw.tar.gz'
C:\msys64\usr\bin\bash.exe -lc "tar xzf SDL2-devel-2.0.10-mingw.tar.gz"
mv SDL2-2.0.10 SDL2
} else {
cmd /C 'curl -fsSL -o SDL2-devel-2.0.9-VC.zip https://www.libsdl.org/release/SDL2-devel-2.0.9-VC.zip'
7z x SDL2-devel-2.0.9-VC.zip
mv SDL2-2.0.9 SDL2
}
} else {
bash -c "sudo apt-get update -qq"
bash -c "sudo apt-get install -qq libsdl2-dev libxml2-dev"
}
build_script:
- mkdir build
- cd build
- ps: |
if ($isWindows -and $env:BUILD_TYPE -eq 'mingw') {
C:\msys64\usr\bin\bash.exe -lc "cmake .. -G 'MSYS Makefiles' -DNOTHING_CI=ON"
C:\msys64\usr\bin\bash.exe -lc "cmake --build ."
} else {
cmake .. -DNOTHING_CI=ON
cmake --build .
}