forked from zxing-cpp/zxing-cpp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.appveyor.yml
47 lines (42 loc) · 1.53 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
version: '{branch}.{build}'
branches:
only:
- /v\d*\.\d*\.\d*/
skip_non_tags: true
image: Visual Studio 2017
build_script:
- cmd: >-
set CMAKE_EXE="cmake.exe"
set DESTINATION="wrappers\winrt\UAP\v0.8.0.0\ExtensionSDKs\ZXingWinRT\1.0.0.0"
set BASE_DIR="%CD%"
cd %DESTINATION%
set DESTINATION=%CD%
cd %BASE_DIR%
set BUILD_LOC=build_uwp_x86
md %BUILD_LOC%
cd %BUILD_LOC%
%CMAKE_EXE% -G "Visual Studio 15 2017" -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0 -DEXTENSION_SDK_OUTPUT="%DESTINATION%" ..\wrappers\winrt
%CMAKE_EXE% --build . --config Release
cd %BASE_DIR%
set BUILD_LOC=build_uwp_x64
md %BUILD_LOC%
cd %BUILD_LOC%
%CMAKE_EXE% -G "Visual Studio 15 2017 Win64" -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0 -DEXTENSION_SDK_OUTPUT="%DESTINATION%" ..\wrappers\winrt
%CMAKE_EXE% --build . --config Release
cd %BASE_DIR%
set BUILD_LOC=build_uwp_arm
md %BUILD_LOC%
cd %BUILD_LOC%
%CMAKE_EXE% -G "Visual Studio 15 2017 ARM" -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0 -DEXTENSION_SDK_OUTPUT="%DESTINATION%" ..\wrappers\winrt
%CMAKE_EXE% --build . --config Release
cd %BASE_DIR%
nuget pack -Version %APPVEYOR_REPO_BRANCH:~1% wrappers\winrt\nuget\ZXingWinRT.nuspec
artifacts:
- path: '*.nupkg'
deploy:
- provider: NuGet
api_key:
secure: OMvgm0WQ+yV7E+yxtmrOn6c/uO/V1fsbBERdz9aQUicqHGImzWqWoSBAankUtxdEwDZx0XrJ5hlUsIuL5tdQD+C8ZKrI1L3FukbXdbqVdKM=
artifact: /.*\.nupkg/
on:
APPVEYOR_REPO_TAG: true