-
Notifications
You must be signed in to change notification settings - Fork 30
/
appveyor.yml
45 lines (37 loc) · 1.64 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
cache:
- 'C:\cygwin64\var\cache\setup'
os: Visual Studio 2022
configuration: Release
clone_folder: c:\projects\openmalaria
# Run install scripts
install:
# Workaround (update CygWin)
- appveyor DownloadFile "http://www.cygwin.com/setup-x86_64.exe" -FileName C:\cygwin64\setup-x86_64.exe
- C:\cygwin64\setup-x86_64.exe -q --no-desktop --no-shortcuts --no-startmenu --upgrade-also -P cmake,make,python3,zlib-devel,libgsl-devel,xsd,libxerces-c-devel
# - C:\cygwin64\bin\bash -lc "echo $HOME"
# - C:\cygwin64\bin\bash -lc "appveyor DownloadFile http://rawgit.com/transcode-open/apt-cyg/master/apt-cyg -FileName apt-cyg"
# - C:\cygwin64\bin\bash -lc "install apt-cyg /bin"
# - C:\cygwin64\bin\bash -lc "apt-cyg update"
# - C:\cygwin64\bin\bash -lc "apt-cyg install wget grep"
# - C:\cygwin64\bin\bash -lc "apt-cyg install zlib-devel make python3 cmake libgsl-devel xsd libxerces-c-devel"
build_script:
- C:\cygwin64\bin\bash -lc "git config --global --add safe.directory /cygdrive/c/projects/openmalaria"
- C:\cygwin64\bin\bash -lc "cd /cygdrive/c/projects/openmalaria && ./build.sh --jobs=4 -r --artifact=openMalaria-windows"
# Discover and run tests (or test_script)
test_script:
- C:\cygwin64\bin\bash -lc "cd /cygdrive/c/projects/openmalaria && ./build.sh --jobs=1 --tests"
# Package artifacts
artifacts:
- path: openMalaria-windows.zip
# Deployment
deploy:
force_update: true
provider: GitHub
description: "OpenMalaria build for Windows"
auth_token:
secure: H6XDjpkpbS8cfYxfGwOwEDBQEuAqnIeDtnG3eHuqTf6gdOjge80AFM2h5iaqTLcw
artifact: openMalaria-windows.zip
draft: false
prerelease: false
on:
appveyor_repo_tag: true