-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
/
appveyor.yml
114 lines (103 loc) · 3.92 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
clone_depth: 200
version: '1.11.{build}'
image:
- Visual Studio 2019
cache:
- C:\Users\appveyor\.m2
- C:\ProgramData\chocolatey\bin -> appveyor.yml
- C:\ProgramData\chocolatey\lib -> appveyor.yml
environment:
BUTLER_API_KEY:
secure: j7JM5L6KeqpnQukzJLsm7J6oV92SpmyEZLSoED1pZ3gQ79VIkdxtbQmTkqUNZPsz
matrix:
- QTDIR: C:\Qt\6.7\msvc2019_64
PYTHONHOME: C:\Python312-x64
DEFAULT_PROFILE: MSVC2019-x64
PUSH_RELEASE: false
ENABLE_ZSTD: false
- QTDIR: C:\Qt\6.7\mingw_64
PYTHONHOME: C:\Python312-x64
MINGW: C:\Qt\Tools\mingw1120_64
DEFAULT_PROFILE: x86_64-w64-mingw32-gcc-11_2_0
PUSH_RELEASE: true
ENABLE_ZSTD: true
TILED_ITCH_CHANNEL: windows-64bit
- QTDIR: C:\Qt\5.15\mingw81_32
PYTHONHOME: C:\Python38
MINGW: C:\Qt\Tools\mingw810_32
DEFAULT_PROFILE: i686-w64-mingw32-gcc-8_1_0
PUSH_RELEASE: true
ENABLE_ZSTD: true
TILED_ITCH_CHANNEL: windows-32bit
configuration: Release
install:
- choco install -y qbs --version 2.2.1
- nuget install secure-file -ExcludeVersion
- set PATH=%PATH%;%QTDIR%\bin;%MINGW%\bin
build_script:
- FOR /F "tokens=*" %%i in ('git describe') do SET COMMITNOW=%%i
- if defined APPVEYOR_REPO_TAG_NAME (set TILED_RELEASE=true) else (set TILED_SNAPSHOT=true)
- if defined TILED_RELEASE set TILED_VERSION=%APPVEYOR_REPO_TAG_NAME:~1%
- if defined TILED_SNAPSHOT set TILED_VERSION=%DATE:~10,4%.%DATE:~4,2%.%DATE:~7,2%
- if defined TILED_SNAPSHOT set TILED_MSI_VERSION=%APPVEYOR_BUILD_VERSION%
- if defined TILED_SNAPSHOT set TILED_ITCH_CHANNEL=%TILED_ITCH_CHANNEL%-snapshot
- if not defined APPVEYOR_PULL_REQUEST_NUMBER if [%APPVEYOR_REPO_BRANCH%]==[snapshot] if defined PUSH_SNAPSHOT set PUSH_TO_ITCH=true
- echo Building Tiled %TILED_VERSION% (%TILED_ITCH_CHANNEL%) from %COMMITNOW%
- git clone --depth 1 -b release https://github.com/facebook/zstd.git
- if defined MINGW cd zstd/lib & set CC=gcc & mingw32-make -j2 libzstd.a & cd ../../
- qbs --version
- qbs setup-toolchains --detect
- qbs config defaultProfile %DEFAULT_PROFILE%
- qbs build config:release projects.Tiled.windowsInstaller:true projects.Tiled.staticZstd:%ENABLE_ZSTD%
- cd util\java
- mvn --version
- mvn clean install
- cd ..\..
after_build:
- cd release
- cd installer*
- move tiled-*.msi %APPVEYOR_BUILD_FOLDER%
- cd ..
- cd archive*
- move tiled-*.7z %APPVEYOR_BUILD_FOLDER%
- cd ..\..
- if defined PUSH_TO_ITCH dist\win\push-to-itch.bat
artifacts:
- name: Installer
path: 'tiled-*.msi'
- name: Archive
path: 'tiled-*.7z'
deploy:
- provider: FTP
protocol: sftp
host: update.mapeditor.org
username: update
password:
secure: YPoSL+S82PCgS5PYbhtxQv0YD7uwZAX9LhjJBBbDGvk=
folder: update.mapeditor.org/snapshots-win
artifact: /.*\.(msi|7z)/
on:
branch: snapshot
push_release: true
- provider: Webhook
url: https://app.signpath.io/API/v1/670574d6-49bf-4a0c-824a-3ae977077079/Integrations/AppVeyor?ProjectKey=tiled&SigningPolicyKey=test-signing
authorization:
secure: 4E7IuM1Ftvdkx43gsqI3tUWb6tcvrfKB22sa6DsWaBzT+zv3DqceDCk0qc/JqTO+Er5UQNYwolmWBzMdys6fVA==
on:
appveyor_repo_tag: false
branch: master
push_release: true
- provider: Webhook
url: https://app.signpath.io/API/v1/670574d6-49bf-4a0c-824a-3ae977077079/Integrations/AppVeyor?ProjectKey=tiled&SigningPolicyKey=release-signing
authorization:
secure: 4E7IuM1Ftvdkx43gsqI3tUWb6tcvrfKB22sa6DsWaBzT+zv3DqceDCk0qc/JqTO+Er5UQNYwolmWBzMdys6fVA==
on:
branch: snapshot
push_release: true
- provider: Webhook
url: https://app.signpath.io/API/v1/670574d6-49bf-4a0c-824a-3ae977077079/Integrations/AppVeyor?ProjectKey=tiled&SigningPolicyKey=release-signing
authorization:
secure: 4E7IuM1Ftvdkx43gsqI3tUWb6tcvrfKB22sa6DsWaBzT+zv3DqceDCk0qc/JqTO+Er5UQNYwolmWBzMdys6fVA==
on:
appveyor_repo_tag: true
push_release: true