forked from golded-plus/golded-plus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
39 lines (38 loc) · 1.26 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
version: '{build}'
branches:
only:
- master
- /^golded-.*/
environment:
matrix:
- generator: Visual Studio 10 2010
pf: "msvc2010"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
- generator: Visual Studio 10 2010 Win64
pf: "msvc2010"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
- generator: Visual Studio 15 2017
pf: "msvc2017"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
- generator: Visual Studio 15 2017 Win64
pf: "msvc2017"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
install:
- cmd: copy golded3\mygolded.__h golded3\mygolded.h
build_script:
- if ["%GENERATOR%"]==["Visual Studio 10 2010 Win64"] if not ["%APPVEYOR_REPO_TAG%"]==["true"] (appveyor exit)
- if ["%GENERATOR%"]==["Visual Studio 15 2017 Win64"] if not ["%APPVEYOR_REPO_TAG%"]==["true"] (appveyor exit)
- cmd: mkdir build && cd build && cmake --version
- cmd: cmake .. -G "%GENERATOR%"
- cmd: cmake --build . -- /P:Configuration=Release
- cmd: 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