-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
74 lines (68 loc) · 3.47 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
image: Visual Studio 2019
platform: x64
install:
- set MSYSTEM=MINGW64
- set PATH=C:\msys64\%MSYSTEM%\bin;C:\msys64\usr\bin;%PATH%;"C:\Program Files (x86)\Inno Setup 6"
- bash -lc "pacman -Syu --noconfirm"
- bash -lc "pacman -Syu --noconfirm"
- bash -lc "pacman -S --needed --noconfirm make cmake scons"
- bash -lc "pacman --noconfirm -Sy mingw-w64-x86_64-toolchain mingw-w64-x86_64-readline mingw-w64-x86_64-libc++ mingw-w64-x86_64-SDL2 mingw-w64-x86_64-SDL2_gfx mingw-w64-x86_64-SDL2_image mingw-w64-x86_64-SDL2_mixer mingw-w64-x86_64-SDL2_net mingw-w64-x86_64-SDL2_ttf mingw-w64-x86_64-sqlite3 mingw-w64-x86_64-tinyxml2 mingw-w64-x86_64-box2d mingw-w64-x86_64-gtest"
# - bash -lc "pacman -R --noconfirm mingw-w64-x86_64-pkg-config"
- bash -lc "git clone https://github.com/kallisti5/guisan.git && pushd guisan && scons prefix=/mingw64 && scons install prefix=/mingw64 && popd"
build_script:
- bash -lc "cd $APPVEYOR_BUILD_FOLDER; export CC=gcc; export CXX=g++; cmake -DRESOURCE_PREFIX=./res -DENABLE_SERVER=ON . && cmake --build . && ctest"
matrix:
fast_finish: true
after_build:
- copy /b build\bin\linbound.exe linbound.exe
# Copy msys 64-bit DLLs into a dll subdir
- mkdir dll
- copy /b /y C:\msys64\%MSYSTEM%\bin\libBox2D.dll dll\
- copy /b /y C:\msys64\%MSYSTEM%\bin\libbrotlicommon.dll dll\
- copy /b /y C:\msys64\%MSYSTEM%\bin\libbrotlidec.dll dll\
- copy /b /y C:\msys64\%MSYSTEM%\bin\libbz2*.dll dll\
- copy /b /y C:\msys64\%MSYSTEM%\bin\libFLAC*.dll dll\
- copy /b /y C:\msys64\%MSYSTEM%\bin\libfreetype*.dll dll\
- copy /b /y C:\msys64\%MSYSTEM%\bin\libgcc_s_seh*.dll dll\
- copy /b /y C:\msys64\%MSYSTEM%\bin\libglib*.dll dll\
- copy /b /y C:\msys64\%MSYSTEM%\bin\libgraphite2.dll dll\
- copy /b /y C:\msys64\%MSYSTEM%\bin\libharfbuzz-0.dll dll\
- copy /b /y C:\msys64\%MSYSTEM%\bin\libiconv*.dll dll\
- copy /b /y C:\msys64\%MSYSTEM%\bin\libintl*.dll dll\
- copy /b /y C:\msys64\%MSYSTEM%\bin\libjpeg*.dll dll\
- copy /b /y C:\msys64\%MSYSTEM%\bin\liblzma*.dll dll\
- copy /b /y C:\msys64\%MSYSTEM%\bin\libmpg123*.dll dll\
- copy /b /y C:\msys64\%MSYSTEM%\bin\libogg-0.dll dll\
- copy /b /y C:\msys64\%MSYSTEM%\bin\libopus-0.dll dll\
- copy /b /y C:\msys64\%MSYSTEM%\bin\libopusfile-0.dll dll\
- copy /b /y C:\msys64\%MSYSTEM%\bin\libpcre-1.dll dll\
- copy /b /y C:\msys64\%MSYSTEM%\bin\libpng16*.dll dll\
- copy /b /y C:\msys64\%MSYSTEM%\bin\libSDL2_gfx*.dll dll\
- copy /b /y C:\msys64\%MSYSTEM%\bin\libsqlite3*.dll dll\
- copy /b /y C:\msys64\%MSYSTEM%\bin\libstdc*.dll dll\
- copy /b /y C:\msys64\%MSYSTEM%\bin\libtiff*.dll dll\
- copy /b /y C:\msys64\%MSYSTEM%\bin\libtinyxml2.dll dll\
- copy /b /y C:\msys64\%MSYSTEM%\bin\libvorbis*.dll dll\
- copy /b /y C:\msys64\%MSYSTEM%\bin\libvorbisfile*.dll dll\
- copy /b /y C:\msys64\%MSYSTEM%\bin\libwebp*.dll dll\
- copy /b /y C:\msys64\%MSYSTEM%\bin\libwinpthread*.dll dll\
- copy /b /y C:\msys64\%MSYSTEM%\bin\libzstd.dll dll\
- copy /b /y C:\msys64\%MSYSTEM%\bin\SDL2*.dll dll\
- copy /b /y C:\msys64\%MSYSTEM%\bin\zlib1.dll dll\
- iscc linbound.iss
artifacts:
- path: Output\LinboundSetup.exe
name: Setup
deploy:
release: linbound-v$(appveyor_build_version)
description: 'Linbound v$(APPVEYOR_BUILD_VERSION)'
provider: GitHub
auth_token:
secure: oAzX3AMKStWmtHsjWEtqKv5kEXk/iDY102HMW15kXfVsxGfbBMGEiZLj/JwFxA4H
artifact: Output\LinboundSetup.exe
draft: true
force_update: true
prerelease: false
on:
branch: master
APPVEYOR_REPO_TAG: true