forked from openconnect/openconnect-gui
-
Notifications
You must be signed in to change notification settings - Fork 2
/
appveyor.yml
61 lines (50 loc) · 1.27 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
version: '{branch}-{build}'
pull_requests:
do_not_increment_build_number: true
branches:
except:
- gh-pages
image: Visual Studio 2017
clone_depth: 100
environment:
QT5: C:\Qt\5.12\mingw73_64
MINGW: C:\Qt\Tools\mingw730_64
NSIS: C:\Program Files (x86)\NSIS
matrix:
# - GENERATOR: '"MinGW Makefiles"'
# BUILD_TYPE: Debug
# TARGET: all
- GENERATOR: '"MinGW Makefiles"'
BUILD_TYPE: Release
TARGET: package
cache: .\build -> appveyor.yml
build_script:
- cmd: >-
set
set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
set PATH=%MINGW%\bin;%QT5%\bin;%PATH%
set PATH="%NSIS%";%PATH%
if not exist build md build
cd .\build
cmake -G %GENERATOR% -DCMAKE_BUILD_TYPE=%BUILD_TYPE% ..
cmake --build . --config %BUILD_TYPE% --target %TARGET%
move /Y *.exe ..
move /Y *.exe.sha512 ..
test: off
artifacts:
- path: openconnect-gui*.exe
name: 'Installer'
- path: openconnect-gui*.exe.sha512
name: 'Installer - sha512 hash'
deploy:
- provider: GitHub
tag: $(APPVEYOR_REPO_TAG_NAME)
release: $(APPVEYOR_REPO_TAG_NAME)
description: TBD...
auth_token:
secure: x7ZSG2iQyNioIlyguchg7/Tzl5NzY521hr8Op0H4EQt/kPIndb2KHe/OlGiX+GSK
artifact: /openconnect-gui-.*\.exe.*/
draft: true
force_update: true
on:
appveyor_repo_tag: true