-
Notifications
You must be signed in to change notification settings - Fork 16
/
appveyor.yml
137 lines (125 loc) · 6.54 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
cache:
- C:\Users\appveyor\AppData\Roaming\cabal -> appveyor.yml
- C:\Users\appveyor\AppData\Roaming\ghc -> appveyor.yml
install:
- appveyor-retry choco install cabal --version 2.4.1.0
- appveyor-retry choco install ghc --version 8.4.4 | grep -v '^Extracting the last GHC that works on Windows Vista'
# breaks appveyor-retry: refreshenv
- SET OLDPATH=%PATH%
- SET PATH=%APPDATA%\cabal\bin;C:\msys64\mingw64\bin;C:\msys64\usr\bin;C:\ProgramData\chocolatey\lib\ghc\tools\ghc-8.4.4\bin;C:\ProgramData\chocolatey\lib\cabal\tools;%PATH%
- SET PKG_CONFIG_PATH=C:\msys64\mingw64\lib\pkgconfig
- SET XDG_DATA_DIRS=C:\msys64\mingw64\share
- cabal --version
- cabal clean
- appveyor-retry pacman -S -q --noconfirm mingw64/mingw-w64-x86_64-pkg-config mingw64/mingw-w64-x86_64-SDL2 mingw64/mingw-w64-x86_64-SDL2_ttf
- cabal update
- cabal v1-install --force-reinstalls happy
- git clone -q --branch=master https://github.com/haskell-game/sdl2
- cd sdl2
- cabal v1-install --force-reinstalls -fno-linear
- cd ..
- git clone -q --branch=master https://github.com/LambdaHack/LambdaHack.git
- cd LambdaHack
- appveyor-retry cabal v1-install --force-reinstalls --disable-library-profiling --disable-profiling --disable-documentation
- cd ..
- pwd
- appveyor-retry make build-binary-common
- cp /c/msys64/mingw64/bin/zlib1.dll AllureOfTheStars
- cp /c/msys64/mingw64/bin/SDL2.dll AllureOfTheStars
- cp /c/msys64/mingw64/bin/SDL2_ttf.dll AllureOfTheStars
- cp /c/msys64/mingw64/bin/libfreetype-6.dll AllureOfTheStars
- cp /c/msys64/mingw64/bin/libgcc_s_seh-1.dll AllureOfTheStars
- cp /c/msys64/mingw64/bin/libbz2-1.dll AllureOfTheStars
- cp /c/msys64/mingw64/bin/libpng16-16.dll AllureOfTheStars
- cp /c/msys64/mingw64/bin/libwinpthread-1.dll AllureOfTheStars
- cp /c/msys64/mingw64/bin/libharfbuzz-0.dll AllureOfTheStars
- cp /c/msys64/mingw64/bin/libglib-2.0-0.dll AllureOfTheStars
- cp /c/msys64/mingw64/bin/libgraphite2.dll AllureOfTheStars
- cp /c/msys64/mingw64/bin/libintl-8.dll AllureOfTheStars
- cp /c/msys64/mingw64/bin/libpcre-1.dll AllureOfTheStars
- cp /c/msys64/mingw64/bin/libstdc++-6.dll AllureOfTheStars
- cp /c/msys64/mingw64/bin/libiconv-2.dll AllureOfTheStars
- cp /c/msys64/mingw64/bin/libbrotlicommon.dll AllureOfTheStars
- cp /c/msys64/mingw64/bin/libbrotlidec.dll AllureOfTheStars
- cp AllureOfTheStarsInstall/Users/appveyor/AppData/Roaming/cabal/bin/Allure.exe AllureOfTheStars
- AllureOfTheStars\Allure --version
- SET /p LH_VERSION=<%APPDATA%\Allure\stdout.txt
- 7z a -ssc -tzip Allure_dev_windows-x86_64.zip AllureOfTheStars
- ps: $env:TIME_STRING=(get-date -UFormat "%Y-%m-%d").ToString()
- ps: Push-AppveyorArtifact Allure_dev_windows-x86_64.zip -FileName "Allure_$($env:LH_VERSION)-dev-$($env:TIME_STRING)_windows-x86_64.zip" -DeploymentName "win64 binaries archive"
- cabal v1-install --force-reinstalls --enable-tests
- SET PATH=C:\msys64\usr\bin;%OLDPATH%
- cp dist\build\test\test.exe AllureOfTheStars
- cp Makefile AllureOfTheStars
- cd AllureOfTheStars
- test
- rm test.exe
- make nativeBenchCrawl-appveyor || (tail -n 200 %APPDATA%\Allure\stderr.txt & tail -n 200 %APPDATA%\Allure\stdout.txt & exit 77)
- cd ..
- mv AllureOfTheStars AllureOfTheStars64
- rm -rf AllureOfTheStarsInstall
- cabal clean
- cd sdl2
- cabal clean
- rm -rf dist
- cd ..
- cd LambdaHack
- cabal clean
- cd ..
- appveyor-retry choco install --force --forcex86 ghc --version 8.4.4 | grep -v '^Extracting '
# breaks appveyor-retry: refreshenv
- SET PATH=%APPDATA%\cabal\bin;C:\msys64\mingw32\bin;C:\msys64\usr\bin;C:\ProgramData\chocolatey\lib\ghc\tools\ghc-8.4.4\bin;C:\ProgramData\chocolatey\lib\cabal\tools;%PATH%
- SET PKG_CONFIG_PATH=C:\msys64\mingw32\lib\pkgconfig
- SET XDG_DATA_DIRS=C:\msys64\mingw32\share
- cabal --version
- cabal clean
- appveyor-retry pacman -S -q --noconfirm mingw-w64-i686-pkg-config mingw-w64-i686-SDL2 mingw-w64-i686-SDL2_ttf
- echo "no cabal update"
- echo "no cabal install happy"
- echo "no git clone -q --branch=master https://github.com/haskell-game/sdl2"
- cd sdl2
- cabal v1-install --force-reinstalls -fno-linear
- cd ..
- echo "no git clone -q --branch=master https://github.com/LambdaHack/LambdaHack.git"
- cd LambdaHack
- appveyor-retry cabal v1-install --force-reinstalls --disable-library-profiling --disable-profiling --disable-documentation
- cd ..
- pwd
- appveyor-retry make build-binary-common
- cp /c/msys64/mingw32/bin/zlib1.dll AllureOfTheStars
- cp /c/msys64/mingw32/bin/SDL2.dll AllureOfTheStars
- cp /c/msys64/mingw32/bin/SDL2_ttf.dll AllureOfTheStars
- cp /c/msys64/mingw32/bin/libfreetype-6.dll AllureOfTheStars
- cp /c/msys64/mingw32/bin/libgcc_s_dw2-1.dll AllureOfTheStars
- cp /c/msys64/mingw32/bin/libbz2-1.dll AllureOfTheStars
- cp /c/msys64/mingw32/bin/libpng16-16.dll AllureOfTheStars
- cp /c/msys64/mingw32/bin/libwinpthread-1.dll AllureOfTheStars
- cp /c/msys64/mingw32/bin/libharfbuzz-0.dll AllureOfTheStars
- cp /c/msys64/mingw32/bin/libglib-2.0-0.dll AllureOfTheStars
- cp /c/msys64/mingw32/bin/libgraphite2.dll AllureOfTheStars
- cp /c/msys64/mingw32/bin/libintl-8.dll AllureOfTheStars
- cp /c/msys64/mingw32/bin/libpcre-1.dll AllureOfTheStars
- cp /c/msys64/mingw32/bin/libstdc++-6.dll AllureOfTheStars
- cp /c/msys64/mingw32/bin/libiconv-2.dll AllureOfTheStars
- cp /c/msys64/mingw32/bin/libbrotlicommon.dll AllureOfTheStars
- cp /c/msys64/mingw32/bin/libbrotlidec.dll AllureOfTheStars
- cp AllureOfTheStarsInstall/Users/appveyor/AppData/Roaming/cabal/bin/Allure.exe AllureOfTheStars
- 7z a -ssc -tzip Allure_dev_windows-i686.zip AllureOfTheStars
- ps: Push-AppveyorArtifact Allure_dev_windows-i686.zip -FileName "Allure_$($env:LH_VERSION)-dev-$($env:TIME_STRING)_windows-i686.zip" -DeploymentName "win32 binaries archive"
- cabal v1-install --force-reinstalls --enable-tests
- SET PATH=C:\msys64\usr\bin;%OLDPATH%
- cp dist\build\test\test.exe AllureOfTheStars
- cp Makefile AllureOfTheStars
- cd AllureOfTheStars
- test
- rm test.exe
- make benchBattle-appveyor || (tail -n 200 %APPDATA%\Allure\stderr.txt & tail -n 200 %APPDATA%\Allure\stdout.txt & exit 77)
- cd ..
- mv AllureOfTheStars AllureOfTheStars32
- ps: '& "C:\Program Files (x86)\NSIS\makensis.exe" .windows.installer.nsi'
- ps: Push-AppveyorArtifact Allure_dev_windows-installer.exe -FileName "Allure_$($env:LH_VERSION)-dev-$($env:TIME_STRING)_windows-installer.exe" -DeploymentName "win64 and win32 installer"
- cabal clean
build: off