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