forked from adawarp/libpsvr
-
Notifications
You must be signed in to change notification settings - Fork 3
/
appveyor.yml
66 lines (61 loc) · 1.67 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
56
57
58
59
60
61
62
63
64
65
66
version: '{build}'
branches:
only:
- master
clone_folder: c:\projects\libpsvr
image:
- Visual Studio 2017
configuration:
- Release
- Debug
platform:
- x64
environment:
matrix:
- arch: Win64
# - arch: #does not work, Release|x64 not a valid target
matrix:
fast_finish: true
# skip unsupported combinations
init:
- set arch=
- if "%arch%"=="Win64" ( set arch= Win64)
- echo %arch%
- echo %APPVEYOR_BUILD_WORKER_IMAGE%
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" ( set generator="Visual Studio 15 2017%arch%" )
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" ( set generator="Visual Studio 14 2015%arch%" )
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2013" ( set generator="Visual Studio 12 2013%arch%" )
- echo %generator%
before_build:
- cmd: |-
cmake --version
clean.bat
generate.bat
build_script:
c:\projects\libpsvr\build.bat
#Zip libpsvr.lib
after_build:
7z a .\build\Win64\libpsvr\libpsvr-"%APPVEYOR_REPO_TAG_NAME%".zip .\build\Win64\libpsvr\libpsvr.lib -r .\include\*
# Upload zip artifact
artifacts:
- path: .\build\Win64\libpsvr\libpsvr-*.zip
name: libpsvr-*
type: zip
only_commits:
files:
- CMakeLists.txt
- appveyor.yml
- build.bat
- src/
deploy:
# Deploy to GitHub Releases
- provider: GitHub
release: $(appveyor_repo_tag_name)
artifact: libpsvr-* # this should be the same as a path in artifact
draft: true
prerelease: false
auth_token:
secure: R1VvzYjzOxJT4J57Fw/rY7IrsMV0j8eH/46CmT7xr/jEmqQ39ITk78vBsyUHar6v
on:
APPVEYOR_REPO_TAG: true # deploy on tag push only
configuration: Release