-
Notifications
You must be signed in to change notification settings - Fork 11
/
appveyor.yml
45 lines (40 loc) · 1.3 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
#version: '7.2.0.{build}'
environment:
CMAKE_PATH: $(APPVEYOR_BUILD_FOLDER)\cmake-3.4.1-win32-x86
VS_VERSION: "Visual Studio 14"
configuration: Release
shallow_clone: false
platform:
- x86
- x64
build_script:
- if "%platform%" == "x86" SET VS_FULL=%VS_VERSION%
- if "%platform%" == "x86" SET CUSTOM_FLAG=""
- if "%platform%" == "x64" SET VS_FULL=%VS_VERSION% Win64
- if "%platform%" == "x64" SET CUSTOM_FLAG="-DWIN64:Bool=True"
- mkdir build
- cd build
- cmake ..
- cd ..
- mkdir %APPVEYOR_PROJECT_NAME%
- cp -r externals %APPVEYOR_PROJECT_NAME%
- cp -r help %APPVEYOR_PROJECT_NAME%
- cp -r java-classes %APPVEYOR_PROJECT_NAME%
- cp -r java-doc %APPVEYOR_PROJECT_NAME%
- cp License.md %APPVEYOR_PROJECT_NAME%
- cp ReadMe.md %APPVEYOR_PROJECT_NAME%
- set SHORT_COMMIT=%APPVEYOR_REPO_COMMIT:~0,6%
- 7z a %APPVEYOR_PROJECT_NAME%-win-%platform%-%SHORT_COMMIT%.zip %APPVEYOR_PROJECT_NAME% > %APPVEYOR_BUILD_FOLDER%\archive.log
artifacts:
- name: Build
path: '*.zip'
deploy:
provider: S3
access_key_id: AKIAIWE3SI2TMXC5AJBA
secret_access_key:
secure: PXJw4guo+r6IdUYK6t8rW01Gi0mWHPmyH+Pa6UmZePtgV1iXaZYoO2R9CgoCQ80y
bucket: cycling74-ci
folder: max-mxj
region: us-west-2
set_public: true
artifact: "$(APPVEYOR_PROJECT_NAME)-win-$(platform)-$(SHORT_COMMIT).zip"