-
Notifications
You must be signed in to change notification settings - Fork 86
/
.appveyor.yml
201 lines (183 loc) · 10.5 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
---
version: "{build}-{branch}"
before_build:
- git submodule update --init --depth 1
for:
- matrix: { only: [ appveyor_build_worker_image: &linux Ubuntu1804 ] }
install: |-
set -e
sudo sed -i '/arch=/! s/^deb/deb [arch=amd64,i386]/' /etc/apt/sources.list
awk '
$3 !~ /ubuntu\.com/ { next }
$1 == "deb" {
$2 = "[arch=armhf,arm64]";
$3 = "http://ports.ubuntu.com/ubuntu-ports/"
} 1' /etc/apt/sources.list | sudo tee /etc/apt/sources.list.d/ports.list > /dev/null
sudo sed -i 's/apt.postgresql.org/apt-archive.postgresql.org/' /etc/apt/sources.list
install-deps() {
local arch="$1"; shift
local native=("$@" php-cli)
local target=(libgtk-3-dev)
sudo dpkg --add-architecture $arch
sudo apt-get update -qq
sudo apt-get install -qq aptitude > /dev/null
sudo aptitude install -yR ${native[@]} ${target[@]/%/:$arch} > /dev/null
}
sudo update-alternatives --set gcc /usr/bin/gcc-7
case $ARCH in
x86_64)
install-deps amd64
;;
i686)
install-deps i386 g++-multilib
export TOOLCHAIN=../cmake/linux-cross.cmake \
TOOLCHAIN_PREFIX=i386-linux-gnu
;;
armv7l)
install-deps armhf g++-arm-linux-gnueabihf
export TOOLCHAIN=../cmake/linux-cross.cmake \
TOOLCHAIN_PREFIX=arm-linux-gnueabihf
;;
aarch64)
install-deps arm64 g++-aarch64-linux-gnu
export TOOLCHAIN=../cmake/linux-cross.cmake \
TOOLCHAIN_PREFIX=aarch64-linux-gnu
;;
esac
build_script:
- mkdir build && cd build
- cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=$TOOLCHAIN
- cmake --build .
- cpack
before_deploy: |-
if [ "$APPVEYOR_REPO_TAG" = "true" ] && [ -n "$DEPLOY_KEY" ]; then
echo "$DEPLOY_KEY" | base64 -d > deploy_key && chmod 600 deploy_key &&
scp -i deploy_key -o StrictHostKeyChecking=NO -q sws*.tar.xz \
[email protected]:/var/www/standingwaterstudios.com/download/pre-release
fi
artifacts:
- path: build/sws*.tar.xz
- path: build/reaper_sws*.so
- matrix: { only: [ appveyor_build_worker_image: macos-catalina, appveyor_build_worker_image: macos-mojave ] }
install:
- |-
case $ARCH in
arm64) DEPLOY_TARGET=11.0 XCODE_VERSION=12.3 ;;
*) DEPLOY_TARGET=10.5 XCODE_VERSION=9.4.1 ;;
esac
- sudo xcode-select -s /Applications/Xcode-$XCODE_VERSION.app
# compute the code directory hash value for the build agent
- AGENT="$(dirname "$0")/appveyor-build-agent"
- codesign -D /tmp/agent.sig -s- "$AGENT"
- codesign -d -r- -D /tmp/agent.sig "$AGENT" 2>&1 | awk -F ' => ' '/designated/{print $2}' | csreq -r- -b /tmp/csreq.bin
- CSREQ="$(xxd -p -c256 /tmp/csreq.bin)"
# authorize control of Finder.app for DMG generation, see appveyor/ci#3216
- sqlite3 "$HOME/Library/Application Support/com.apple.TCC/TCC.db" "INSERT INTO access VALUES('kTCCServiceAppleEvents','$AGENT',1,1,1,X'$CSREQ',NULL,0,'com.apple.finder',X'fade0c000000002c00000001000000060000000200000010636f6d2e6170706c652e66696e64657200000003',NULL,strftime('%s', 'now'));"
build_script:
- mkdir build && cd build
- cmake .. -DCMAKE_BUILD_TYPE=Release -DNO_INSTALL_PREFIX=YES
-DCMAKE_OSX_ARCHITECTURES=$ARCH -DCMAKE_OSX_DEPLOYMENT_TARGET=$DEPLOY_TARGET
- cmake --build .
- cpack
before_deploy: |-
if [ "$APPVEYOR_REPO_TAG" = "true" ] && [ -n "$DEPLOY_KEY" ]; then
echo "$DEPLOY_KEY" | base64 -D > deploy_key && chmod 600 deploy_key &&
scp -i deploy_key -o StrictHostKeyChecking=NO -q sws*.dmg \
[email protected]:/var/www/standingwaterstudios.com/download/pre-release
fi
artifacts:
- path: build/sws*.dmg
- path: build/reaper_sws*.dylib
- matrix: { only: [ appveyor_build_worker_image: &windows Visual Studio 2022 ] }
install:
# Use NSIS v2.46 to reduce AV false positives
- '"%ProgramFiles(x86)%\NSIS\uninst-nsis.exe" /S'
- choco install -y nsis-unicode
# CMake 3.17+ requires NSIS 3
- choco install -y cmake --version 3.16.6
- choco install -y php
- refreshenv
- curl -fsSLO https://nsis.sourceforge.io/mediawiki/images/1/18/NsProcess.zip
- 7z e nsProcess.zip -o"%ProgramFiles(x86)%\NSIS\Unicode\Plugins" nsProcessW.dll -r
- if "%ARCH%" == "x64" call "%ProgramFiles%\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat"
- if "%ARCH%" == "x86" call "%ProgramFiles%\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars32.bat"
build_script:
- mkdir build && cd build
- cmake .. -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo
- cmake --build . --target all langpack whatsnew
- '"C:\Program Files\CMake\bin\cpack"'
before_deploy:
- ps: |-
if($env:APPVEYOR_REPO_TAG -eq "true" -And $env:DEPLOY_KEY -ne $null) {
$bytes = [System.Convert]::FromBase64String($env:DEPLOY_KEY)
[System.IO.File]::WriteAllBytes("$($PWD)\deploy_key", $bytes)
icacls deploy_key /c /t /Inheritance:d > $null
icacls deploy_key /c /t /Grant $env:USERNAME':F' > $null
icacls deploy_key /c /t /Remove Administrator "Authenticated Users" BUILTIN\Administrators BUILTIN Everyone System Users > $null
scp -i deploy_key -o StrictHostKeyChecking=NO -q sws*.exe version.h `
BuildUtils/SWS_Template.ReaperLangPack BuildUtils/whatsnew.html `
[email protected]:/var/www/standingwaterstudios.com/download/pre-release
}
artifacts:
- path: build\sws*.exe
- path: build\sws_python*.py
- path: build\reaper_sws*.dll
- path: build\reaper_sws*.pdb
- path: build\BuildUtils\SWS_Template.ReaperLangPack
- path: build\BuildUtils\whatsnew.html
environment:
matrix:
- job_name: Windows 64-bit
appveyor_build_worker_image: *windows
ARCH: x64
- job_name: Windows 32-bit
appveyor_build_worker_image: *windows
ARCH: x86
- job_name: macOS x86 64-bit
appveyor_build_worker_image: macos-mojave
ARCH: x86_64
- job_name: macOS x86 32-bit
appveyor_build_worker_image: macos-mojave
ARCH: i386
- job_name: macOS ARM 64-bit
appveyor_build_worker_image: macos-catalina
ARCH: arm64
- job_name: Linux x86 64-bit
appveyor_build_worker_image: *linux
ARCH: x86_64
- job_name: Linux x86 32-bit
appveyor_build_worker_image: *linux
ARCH: i686
- job_name: Linux ARM 64-bit
appveyor_build_worker_image: *linux
ARCH: aarch64
- job_name: Linux ARM 32-bit
appveyor_build_worker_image: *linux
ARCH: armv7l
global:
DEPLOY_KEY:
secure: npJumTxslDoMU/lyLg+Euktl13mW7t4zAMxkUvdn2ZkWrSVhfpGgchnGqkRFSQ5ej+VroRzlpxJbqe94D8tsIuLMdR/iJ+b4vvvkVZYfK2l4bAO5FeAtUvSwszPXKJVatYR6F+xLoIYhRDxarmyq8eqrVaNa2dpfEDDDAk3R7gNVDJxt16t9VXX+FVxE2oH/Eeafi7sTmsFpa0QiwPOrU5w5SQe1YP/Sdjil2kCsa/RR3TL1PNWDqQds/LC6StJF7IKBweO8dq4HL8ULth4eT+SdGFZAllZv19F5QGMPCPp9ZO/BrmeMer0uOWg7798WLr3w8NZ7tt+CHc8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Pd/1ahsglpXvRjBq2CLuAZIxB1RpKgZzsym696x5PiStogY9k7T2yCDKBZWbazBbvDMHznVefwRsXd70lFH7BEklQQwap2z74WeQ4MMr47XeTYFUvmB/tLF5hn01ef9ZJZcQxywe8zHN1ZCinJNzf1e65Ll4doOqI9X4ho75BejZl5OrFktEHOGAteIxkpAinpYdvmAfgXuVitH5VUxX3mDl/YehXuGLFk0WNmUf0/Zy4SBmdNKEABhaJqKh4nUDI1nFBg+fL3dBkaxu815w0KySYYJ5YECNfjlYR86T4BOoeXlyXInRcwQlOH1nZi3SFidv0yhQjhoJ/nlbho/n5dMR+Frv2l2Esnwk/5b07n9gUr0gV2nPvpPy/1qLgaiYYcla+r++VPfruLpBTYHG5U1AZRr22ZWx1moPWZ/xHG+86Uqjq06jzxIUOSv7uok/MV8h5A/ES8rxGhHbvwVMDlmc7vdRfJ9qmPbttRdCF2Wz9g4JyEMKdwrco8UMZP85DhjaMuac=
notifications:
- provider: GitHubPullRequest
on_build_failure: false
on_build_status_changed: false
template: |-
{{#passed}}:white_check_mark:{{/passed}}{{#failed}}:x:{{/failed}} [Build {{&projectName}} {{buildVersion}} {{status}}]({{buildUrl}}) (commit {{commitUrl}} by @{{&commitAuthorUsername}})
{{#passed}}{{#jobs}}
<details>
<summary>{{name}}</summary>
{{#artifacts}}
- [{{fileName}}]({{permalink}})
{{/artifacts}}
</details>
{{/jobs}}{{/passed}}
deploy:
provider: GitHub
draft: true
description: ''
force_update: true
auth_token:
secure: dKuYK8SyWSI/e/akb6EXvhMgumwjN2696hvjJbIZlXeSJjlWmOy9wUDRKwjWLVA06RBfguJppOBN9zjNB1Ur3h8rMYFAQnJnV2r7UW3/M1sEEl75E1+bmMT1HWAuTwkh
artifact: /.*\.(dll|dylib|so)|sws_python(32|64)\.py|SWS_Template\.ReaperLangPack/
on:
APPVEYOR_REPO_TAG: true