-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathappveyor.yml
56 lines (55 loc) · 3.61 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
version: '{build}'
branches:
only:
- master
- /^hpt-.*/
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/areafix C:\projects\areafix
- cmd: git clone https://github.com/huskyproject/hptzip C:\projects\hptzip
before_build:
- ps:
cd C:\projects\huskylib; $huskylib_mdate=git log -1 --date=short --format=format:"%cd" huskylib/*.h src/*.c; echo "char cvs_date[]=""$huskylib_mdate"";" > cvsdate.h;
cd C:\projects\smapi; $smapi_mdate=git log -1 --date=short --format=format:"%cd" smapi/*.h src/*.c; if($huskylib_mdate -gt $smapi_mdate) {$smapi_mdate=$huskylib_mdate}; echo "char cvs_date[]=""$smapi_mdate"";" > cvsdate.h;
cd C:\projects\fidoconf; $fidoconf_mdate=git log -1 --date=short --format=format:"%cd" fidoconf/*.h src/*.c; if($smapi_mdate -gt $fidoconf_mdate) {$fidoconf_mdate=$smapi_mdate}; echo "char cvs_date[]=""$fidoconf_mdate"";" > cvsdate.h;
cd C:\projects\areafix; $areafix_mdate=git log -1 --date=short --format=format:"%cd" areafix/*.h src/*.c; if($fidoconf_mdate -gt $areafix_mdate) {$areafix_mdate=$fidoconf_mdate}; echo "char cvs_date[]=""$areafix_mdate"";" > cvsdate.h;
cd C:\projects\hptzip; $hptzip_mdate=git log -1 --date=short --format=format:"%cd" hptzip/*.h src/*.c; if($huskylib_mdate -gt $hptzip_mdate) {$hptzip_mdate=$huskylib_mdate}; echo "char cvs_date[]=""$hptzip_mdate"";" > cvsdate.h;
cd C:\projects\hpt; $hpt_mdate=git log -1 --date=short --format=format:"%cd" hpt/*.h src/*.c; if($hptzip_mdate -gt $hpt_mdate) {$hpt_mdate=$hptzip_mdate}; if($areafix_mdate -gt $hpt_mdate) {$hpt_mdate=$areafix_mdate}; echo "char cvs_date[]=""$hpt_mdate"";" > cvsdate.h
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\areafix && 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\hpt && 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