-
Notifications
You must be signed in to change notification settings - Fork 42
/
.appveyor.yml
44 lines (32 loc) · 1.62 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
41
42
43
44
version: 0.90.{build} # Has no bearing on actual IVAN version - haha!
branches:
only:
- master
environment:
COMPILER: msys2
BUILDTOOL: cmake
MSYS2_DIR: msys64
MSYSTEM: MINGW32
init:
- cmd: set PATH=C:\%MSYS2_DIR%\%MSYSTEM%\bin;C:\%MSYS2_DIR%\usr\bin;%PATH%
cache: C:\msys64\var\cache\pacman\pkg
# N.B. you might need this nifty PS command to clear the cache one day: Remove-Item c:\msys64\var\cache\pacman\pkg -Recurse -Force
build_script:
- ps: |
mkdir msys2
cd C:/msys64
C:\msys64\usr\bin\bash -lc ("for i in {1..3}; do pacman --noconfirm -Syu --force coreutils && break || sleep 15; done");
C:\msys64\usr\bin\bash -lc "pacman --noconfirm -Su"
C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S git"
C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S mingw-w64-i686-gcc"
C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S make"
C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S mingw-w64-i686-cmake"
C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S mingw-w64-i686-libpng"
C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S mingw-w64-i686-SDL2"
C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S mingw-w64-i686-SDL2_mixer"
C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S mingw-w64-i686-pkg-config"
cd $env:APPVEYOR_BUILD_FOLDER
$thisclone = Split-Path -Path $env:APPVEYOR_BUILD_FOLDER -Leaf
cmake -G "MSYS Makefiles" -DCMAKE_CXX_FLAGS=-DWIZARD -DCMAKE_INSTALL_PREFIX="C:/projects/$thisclone/build"
cmake .
make -j4 install