-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathappveyor.yml
81 lines (66 loc) · 2.1 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
version: 1.2.{build}-{branch}
skip_tags: true
# Start builds on tags only (GitHub and BitBucket)
skip_non_tags: false
# Build worker image (VM template)
environment:
matrix:
- generator: "MinGW Makefiles"
dialect: mingw-w64
# scripts that are called at very beginning, before repo cloning
init:
- git config --global core.autocrlf input
# clone directory
clone_folder: c:\projects\libaps2
matrix:
fast_finish: true # set this flag to immediately finish build once one of the jobs fails.
platform:
- x64
configuration:
- Debug
# scripts that run after cloning repository
install:
# get dependencies
- git submodule update --init --recursive
build: off
# scripts to run before build
before_build:
# Workaround for CMake not wanting sh.exe on PATH for MinGW
- set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
- if "%dialect%"=="mingw-w64" set PATH=c:\msys64\mingw64\bin;%PATH%
# scripts to run *after* solution is built and *before* automatic packaging occurs (web apps, NuGet packages, Azure Cloud Services)
before_package:
# scripts to run after build
after_build:
- 7z a Release.zip c:\projects\libaps2\build\libaps2.dll
- 7z a Release.zip c:\projects\libaps2\build\*.exe
# to run your custom scripts instead of automatic MSBuild
build_script:
# create build directory and call cmake
- md build
- cd build
- cmake -H. -G"%generator%" -DCMAKE_BUILD_TYPE=%configuration% ../src/
- if "%generator:~0,5%"=="MinGW" set CMAKE_BUILD_FLAGS=-- -j
- cmake --build . %CMAKE_BUILD_FLAGS%
# artifacts configuration
artifacts:
# pushing entire folder as a zip archive
# - path: 'build\*.dll'
# name: build\Libray.zip
# type: Auto
#
# - path: 'build\*.exe'
# name: build\Utils.zip
# type: Auto
- path: build\Release.zip
name: Release
#
# # Deploy to GitHub Releases
# - provider: GitHub
# artifact: /.*\.nupkg/ # upload all NuGet packages to release assets
# draft: false
# prerelease: false
# on:
# branch: master # release from master branch only
# appveyor_repo_tag: true # deploy on tag push only
#