forked from Vita3K/Vita3K
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
executable file
·40 lines (29 loc) · 1.04 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
version: '{build}'
image: Visual Studio 2019
environment:
global:
BOOST_ROOT: C:\Libraries\boost_1_71_0
BOOST_INCLUDEDIR: C:\Libraries\boost_1_71_0\boost
BOOST_LIBRARYDIR: C:\Libraries\boost_1_71_0\lib64-msvc-14.2
install:
- ps: | # Set env vars for versioning
$commit_date = $env:APPVEYOR_REPO_COMMIT_TIMESTAMP.Substring(0,10)
$commit_sha = $env:APPVEYOR_REPO_COMMIT.Substring(0,8)
$commit_tag = $(git describe --tags $(git rev-list --tags --max-count=1))
$env:AVVER = "{0}-{1}" -f $commit_tag, $env:APPVEYOR_BUILD_NUMBER
$env:BUILD = "Vita3K-{0}-{1}-{2}_win64.7z" -f $commit_tag, $commit_date, $commit_sha
- git submodule update --init --recursive
- gen-windows
platform: x64
configuration: Release
build:
parallel: true
project: build-windows\Vita3K.sln
after_build: # Package artifact
- ps: 7z a -m0=LZMA2 -mx9 $env:BUILD .\build-windows\bin\$env:CONFIGURATION\*
test: off
artifacts:
- path: $(BUILD)
name: Vita3K
on_finish: # Bump AppVeyor Version
- ps: update-appveyorbuild -version $env:AVVER