-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathappveyor.yml
45 lines (45 loc) · 2.01 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
version: '{build}'
branches:
only:
- master
- /^nltools-.*/
image:
- Visual Studio 2017
environment:
matrix:
- generator: Visual Studio 15 2017
cf: -DBUILD_SHARED_LIBS=OFF -T v141_xp
pf: "msvc2017"
- generator: Visual Studio 15 2017
cf: -DBUILD_SHARED_LIBS=ON
pf: "msvc2017"
- generator: Visual Studio 15 2017 Win64
cf: -DBUILD_SHARED_LIBS=OFF
pf: "msvc2017"
- generator: Visual Studio 15 2017 Win64
cf: -DBUILD_SHARED_LIBS=ON
pf: "msvc2017"
install:
- cmd: git clone https://github.com/huskyproject/huskylib C:\projects\huskylib
- cmd: git clone https://github.com/huskyproject/smapi C:\projects\smapi
- cmd: git clone https://github.com/huskyproject/fidoconf C:\projects\fidoconf
- cmd: git clone https://github.com/huskyproject/hptzip C:\projects\hptzip
build_script:
- cmd:
cd C:\projects\huskylib && mkdir build && cd build && cmake --version && cmake .. -G "%GENERATOR%" %CF% && cmake --build . -- /P:Configuration=Release &&
cd C:\projects\smapi && mkdir build && cd build && cmake --version && cmake .. -G "%GENERATOR%" %CF% && cmake --build . -- /P:Configuration=Release &&
cd C:\projects\fidoconf && mkdir build && cd build && cmake --version && cmake .. -G "%GENERATOR%" %CF% && cmake --build . -- /P:Configuration=Release &&
cd C:\projects\hptzip && mkdir build && cd build && cmake --version && cmake .. -G "%GENERATOR%" %CF% && cmake --build . -- /P:Configuration=Release &&
cd C:\projects\nltools && mkdir build && cd build && cmake --version && cmake .. -G "%GENERATOR%" %CF% && cmake --build . -- /P:Configuration=Release
- if ["%CF%"]==["-DBUILD_SHARED_LIBS=OFF"] (cpack)
- if ["%CF%"]==["-DBUILD_SHARED_LIBS=OFF -T v141_xp"] (cpack)
- ps: gci *.7z | %{ rename-item –path $_.Fullname –Newname ( $_.basename +"-"+$Env:pf+$_.extension) }
artifacts:
- path: build\*.7z
name: dist
deploy:
provider: GitHub
artifact: dist
auth_token: $(GITHUB_OAUTH_TOKEN)
on:
appveyor_repo_tag: true