]> git.lizzy.rs Git - nothing.git/blob - appveyor.yml
Add RENDERER_CONFIG
[nothing.git] / appveyor.yml
1 # TODO(#1183): appveyor linux build does not support clang
2 # TODO(#1184): appveyor does not support macos build
3 image:
4   - ubuntu1804
5   - Visual Studio 2015
6   - macos
7 environment: # enable mingw build on windows image
8   MSYSTEM: MINGW64
9   CHERE_INVOKING: 1
10   matrix:
11     - BUILD_TYPE: mingw
12     - BUILD_TYPE: other
13 matrix:
14   exclude: # no mingw build on linux
15     - image: ubuntu1804
16       BUILD_TYPE: mingw
17     - image: macos
18       BUILD_TYPE: mingw
19 install:
20   - ps: |
21        if ($isWindows) {
22           if ($env:BUILD_TYPE -eq 'mingw') {
23               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'
24               C:\msys64\usr\bin\bash.exe -lc "tar xzf SDL2-devel-2.0.10-mingw.tar.gz"
25               mv SDL2-2.0.10 SDL2
26           } else {
27               cmd /C 'curl -fsSL -o SDL2-devel-2.0.9-VC.zip https://www.libsdl.org/release/SDL2-devel-2.0.9-VC.zip'
28               7z x SDL2-devel-2.0.9-VC.zip
29               mv SDL2-2.0.9 SDL2
30           }
31        } elseif ($isLinux) {
32            bash -c "sudo apt-get update -qq"
33            bash -c "sudo apt-get install -qq libsdl2-dev"
34        } else {
35            bash -c "brew install sdl2"
36        }
37 build_script:
38   - ps: |
39        if ($isWindows) {
40            mkdir build
41            cd build
42            if ($env:BUILD_TYPE -eq 'mingw') {
43                C:\msys64\usr\bin\bash.exe -lc "cmake .. -G 'MSYS Makefiles' -DNOTHING_CI=ON"
44                C:\msys64\usr\bin\bash.exe -lc "cmake --build ."
45            } else {
46                cmake .. -DNOTHING_CI=ON
47                cmake --build .
48            }
49        } elseif ($isLinux) {
50            bash -c "CC=gcc ./build-posix.sh"
51        } else {
52            bash -c "CC=clang ./build-posix.sh"
53        }