]> git.lizzy.rs Git - nothing.git/blobdiff - appveyor.yml
Merge pull request #1255 from tsoding/1253
[nothing.git] / appveyor.yml
index f7dad685a0e8a6bfc57c9631fd75bf21caf58a10..eeeb6a5417c7951e04eba69eefe612ade58a5de9 100644 (file)
@@ -1,8 +1,8 @@
 # TODO(#1183): appveyor linux build does not support clang
-# TODO(#1184): appveyor does not support macos build
 image:
   - ubuntu1804
   - Visual Studio 2015
+  - macos
 environment: # enable mingw build on windows image
   MSYSTEM: MINGW64
   CHERE_INVOKING: 1
@@ -13,6 +13,8 @@ matrix:
   exclude: # no mingw build on linux
     - image: ubuntu1804
       BUILD_TYPE: mingw
+    - image: macos
+      BUILD_TYPE: mingw
 install:
   - ps: |
        if ($isWindows) {
@@ -25,9 +27,11 @@ install:
               7z x SDL2-devel-2.0.9-VC.zip
               mv SDL2-2.0.9 SDL2
           }
-       } else {
+       } elseif ($isLinux) {
            bash -c "sudo apt-get update -qq"
            bash -c "sudo apt-get install -qq libsdl2-dev"
+       } else {
+           bash -c "brew install sdl2"
        }
 build_script:
   - ps: |
@@ -41,6 +45,8 @@ build_script:
                cmake .. -DNOTHING_CI=ON
                cmake --build .
            }
+       } elseif ($isLinux) {
+           bash -c "CC=gcc ./build-posix.sh"
        } else {
-           bash -c "./build-posix.sh"
+           bash -c "CC=clang ./build-posix.sh"
        }