-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathappveyor.yml
65 lines (54 loc) · 1.47 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
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
GENERATOR: "Visual Studio 15 2017"
configuration:
- Release
branches:
only:
- master
skip_non_tags: true
platform:
- Win32
- x64
init:
- ps: Set-WinSystemLocale ja-JP
- ps: Start-Sleep -s 15
- ps: Restart-Computer
- ps: Start-Sleep -s 15
- git config --global core.autocrlf input
before_build:
- hg clone https://bitbucket.org/multicoreware/x265
- md build
- cd build
- cmake --version
- cmake -G "%GENERATOR%" -A "%PLATFORM%" ..
- ps: |
$version = $null
if (Test-Path Env:APPVEYOR_REPO_TAG_NAME)
{
$version = (Get-Item Env:APPVEYOR_REPO_TAG_NAME).Value
}
if ([string]::IsNullOrEmpty($version))
{
$version = $env:APPVEYOR_BUILD_VERSION + '_Alpha'
}
$env:BUILD_VERSION=$version
- cd ..\
build:
project: build/hdr10plus_gen.sln
after_build:
- 7z a -mx9 hdr10plus_gen_%BUILD_VERSION%_%PLATFORM%.7z "%APPVEYOR_BUILD_FOLDER%\build\hdr10plus_gen\Release\hdr10plus_gen.exe"
artifacts:
- path: hdr10plus_gen_%BUILD_VERSION%_%PLATFORM%.7z
name: hdr10plus_gen_%BUILD_VERSION%_%PLATFORM%
deploy:
provider: GitHub
auth_token:
secure: IDRwZWN1uQaTxb64SQnTDNJR5KPtCFPL3Mln9GrdZ7TSiyec/o1KXpOuh/50ZO5A
artifact: hdr10plus_gen_%BUILD_VERSION%_%PLATFORM%
draft: false
prerelease: false
on:
branch: master
appveyor_repo_tag: true