-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
38 lines (29 loc) · 1.23 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
build: off
clone_folder: "c:\\stack"
environment:
global:
STACK_ROOT: "c:\\sr"
matrix:
- ARGS: ""
artifacts:
- path: hsrl.zip
name: hsrl
before_build:
# http://help.appveyor.com/discussions/problems/6312-curl-command-not-found
- set PATH=C:\Program Files\Git\mingw64\bin;%PATH%
- curl -sS -ostack.zip -L --insecure https://get.haskellstack.org/stable/windows-x86_64.zip
- 7z x stack.zip stack.exe
build_script:
# Install toolchain, but do it silently due to lots of output
- stack %ARGS% setup > nul
- stack exec --no-terminal -- pacman -Syu --noconfirm > nul
- stack exec --no-terminal -- pacman -S --noconfirm mingw-w64-x86_64-pkgconf
- stack exec -- curl -O https://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-SDL2-2.0.22-2-any.pkg.tar.zst
- stack exec -- pacman -U --noconfirm mingw-w64-x86_64-SDL2-2.0.22-2-any.pkg.tar.zst
- stack exec -- pkg-config --libs sdl2
# The ugly echo "" hack is to avoid complaints about 0 being an invalid file
# descriptor
- echo "" | stack %ARGS% --no-terminal build
- stack --local-bin-path . install hsrl
- 7z a -tzip hsrl.zip hsrl.exe res LICENSE
- forfiles /p C:\Users\appveyor\AppData\Local\Programs\stack\x86_64-windows /s /m "SDL*.dll" /c "cmd /c 7z.exe a -tzip C:\stack\hsrl.zip @file"