forked from apitrace/apitrace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
63 lines (51 loc) · 1.82 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
# See http://www.appveyor.com/docs/appveyor-yml
version: '{build}'
branches:
except:
- /^github.*$/
init:
- git config --global core.autocrlf input
shallow_clone: true
# Clone git submodules. See:
# - https://github.com/appveyor/ci/issues/899#issuecomment-567280434
# - https://www.appveyor.com/docs/global-yml/#cloning
clone_script:
- ps: >-
if (-Not $env:APPVEYOR_PULL_REQUEST_NUMBER) {
git clone -q --depth 1 --branch=$env:APPVEYOR_REPO_BRANCH https://github.com/$env:APPVEYOR_REPO_NAME.git $env:APPVEYOR_BUILD_FOLDER
cd $env:APPVEYOR_BUILD_FOLDER
git checkout -qf $env:APPVEYOR_REPO_COMMIT
} else {
git clone -q --depth 1 https://github.com/$env:APPVEYOR_REPO_NAME.git $env:APPVEYOR_BUILD_FOLDER
cd $env:APPVEYOR_BUILD_FOLDER
git fetch -q origin +refs/pull/$env:APPVEYOR_PULL_REQUEST_NUMBER/merge:
git checkout -qf FETCH_HEAD
}
- cmd: git submodule update --init --depth 1 --recursive
cache:
- 5.15.2-0-202011130602qtbase-Windows-Windows_10-MSVC2019-Windows-Windows_10-X86.7z
- 5.15.2-0-202011130602qtbase-Windows-Windows_10-MSVC2019-Windows-Windows_10-X86_64.7z
- 5.15.2-0-202011130602qttools-Windows-Windows_10-MSVC2019-Windows-Windows_10-X86.7z
- 5.15.2-0-202011130602qttools-Windows-Windows_10-MSVC2019-Windows-Windows_10-X86_64.7z
# https://www.appveyor.com/docs/windows-images-software/
image: Visual Studio 2019
environment:
MSBUILD_FLAGS: /verbosity:minimal /maxcpucount
matrix:
- job_name: msvc32
TARGET: win32
- job_name: msvc64
TARGET: win64
matrix:
fast_finish: true
build_script:
- ps: .\ci\build-msvc.ps1 -target $Env:TARGET
artifacts:
- path: build/apitrace-*.7z
deploy:
provider: GitHub
auth_token:
secure: 8XN6nDKotuLqcXjdgJ5bOGcQZzBV8KZnGcbJJ/4E5GJkyh5cw0eH6ThLeunnRVVo
artifact: /.*\.7z/
on:
appveyor_repo_tag: true