-
Notifications
You must be signed in to change notification settings - Fork 5
/
.appveyor.yml
53 lines (42 loc) · 1.35 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
version: appveyor-{build}
branches:
only:
- master
environment:
matrix:
- PLATFORM: x86
CYGPATH: C:\cygwin
- PLATFORM: x64
CYGPATH: C:\cygwin64
image: Visual Studio 2015
init:
- git config --global core.autocrlf input
# fetch repository as zip archive
shallow_clone: true
# or set clone depth (instead of cloning the whole repo)
# clone_depth: 5
build_script:
- '%CYGPATH%\bin\sh.exe --login -c "cd \"$OLDPWD\" && make TARGET=WINNT CC=$(uname -m)-w64-mingw32-gcc"'
- '%CYGPATH%\bin\sh.exe --login -c "cd \"$OLDPWD\" && make libz.so TARGET=WINNT CC=$(uname -m)-w64-mingw32-gcc"'
test_script:
- '%CYGPATH%\bin\sh.exe --login -c "cd \"$OLDPWD\" && $(uname -m)-w64-mingw32-objdump -h libwhich.exe"'
- '%CYGPATH%\bin\sh.exe --login -c "cd \"$OLDPWD\" && make check TARGET=WINNT CC=$(uname -m)-w64-mingw32-gcc"'
after_build:
- 'copy libwhich.exe libwhich-%PLATFORM%.exe'
artifacts:
- path: libwhich-$(PLATFORM).exe
deploy:
- provider: GitHub
artifact: libwhich-$(PLATFORM).exe
description: ''
auth_token:
secure: 'FbWlTswo50x/YT+rC6cIc5M7PcwYB2weI/Td7k1dX5jtQfepfvIbOnj7ILmH3POK'
draft: true
prerelease: false
on:
appveyor_repo_tag: true # deploy on tag push only
notifications:
- provider: Email
on_build_success: false
on_build_failure: false
on_build_status_changed: false