-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
164 lines (150 loc) · 5.8 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
version: "{build}-{branch}"
build_script:
- export VCPKG_OVERLAY_TRIPLETS=cmake/vcpkg-triplets
- cmake -B build -DCMAKE_BUILD_TYPE=Release
-DCMAKE_TOOLCHAIN_FILE=~/vcpkg/scripts/buildsystems/vcpkg.cmake
-DVCPKG_TARGET_TRIPLET=arch-env -DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=$TOOLCHAIN
-DCMAKE_OSX_ARCHITECTURES=$ARCH -DCMAKE_OSX_DEPLOYMENT_TARGET=$DEPLOY_TARGET
-DBUILD_NUMBER=$BUILD_NUMBER
-DREPO_COMMIT=$REPO_COMMIT
-DREPO_TAG=$REPO_TAG
- cmake --build build
- cd build
# - if [ "$ARCH" == "arm64;x86_64" ]; then sudo cpack && rm *.dylib; fi
for:
- matrix: { only: [ appveyor_build_worker_image: &linux Ubuntu1804 ] }
cache:
- build/vcpkg_installed -> vcpkg.json, cmake/vcpkg-triplets/arch-env.cmake
install: |-
# set -e
sudo sed -i '/arch=/! s/^deb/deb [arch=amd64,i386]/' /etc/apt/sources.list
install-deps() {
# sudo add-apt-repository --remove "deb http://apt.postgresql.org/pub/repos/apt/ bionic-pgdg main"
local arch="$1"; shift
local native=("$@" php-cli qemu-user-binfmt )
local target=()
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
sudo apt-get install -qq --allow-downgrades libstdc++6=8.4.0-1ubuntu1~18.04 > /dev/null
case $ARCH in
x86_64)
install-deps amd64
;;
i686)
install-deps i386 g++-multilib
export TOOLCHAIN=$(pwd)/cmake/linux-cross.cmake \
TOOLCHAIN_PREFIX=i386-linux-gnu
;;
armv7l)
install-deps armhf g++-arm-linux-gnueabihf
export TOOLCHAIN=$(pwd)/cmake/linux-cross.cmake \
TOOLCHAIN_PREFIX=arm-linux-gnueabihf
;;
aarch64)
install-deps arm64 g++-aarch64-linux-gnu
export TOOLCHAIN=$(pwd)/cmake/linux-cross.cmake \
TOOLCHAIN_PREFIX=aarch64-linux-gnu
;;
esac
artifacts:
- path: build/reaper_*.so
- matrix: { only: [ appveyor_build_worker_image: macos-catalina,
appveyor_build_worker_image: macos-mojave ] }
cache:
# - build/vcpkg_installed -> vcpkg.json, cmake/vcpkg-triplets/arch-env.cmake
install:
- |-
case $ARCH in
*arm64*)
DEPLOY_TARGET=11.0
sudo xcode-select -s /Applications/Xcode-12.3.app
;;
*)
# brew install llvm
DEPLOY_TARGET=10.9
# TOOLCHAIN=cmake/brew-llvm.cmake
export SDKROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX10.10.sdk
curl -fsSLO https://github.com/phracker/MacOSX-SDKs/releases/download/10.15/MacOSX10.10.sdk.tar.xz
echo 608a89db8b4be150a945871230b5ba5d4767a8500bc5fe76ddf10f5cec5ef513 MacOSX10.10.sdk.tar.xz | sha256sum -c
sudo tar xf MacOSX10.10.sdk.tar.xz -C /Library/Developer/CommandLineTools/SDKs
sudo xcode-select -s /Library/Developer/CommandLineTools
;;
esac
- |-
if [ "$appveyor_build_worker_image" = "macos-mojave" ]; then
# https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/
sudo curl -k https://curl.se/ca/cacert.pem -o /etc/ssl/cert.pem
fi
artifacts:
- path: build/reaper_*.dylib
- path: build/*.pkg
- matrix: { only: [ appveyor_build_worker_image: &windows Visual Studio 2022 ] }
cache:
- build\vcpkg_installed -> vcpkg.json
install:
- 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:
- cmake -B build -G "Ninja" -DCMAKE_BUILD_TYPE=Release
-DVCPKG_TARGET_TRIPLET=%ARCH%-windows-static
-DCMAKE_TOOLCHAIN_FILE=C:\Tools\vcpkg\scripts\buildsystems\vcpkg.cmake
-DBUILD_NUMBER=%BUILD_NUMBER%
-DREPO_COMMIT=%REPO_COMMIT%
-DREPO_TAG=%REPO_TAG%
- cmake --build build
- cd build
# - if "%ARCH%" == "x64" cpack
artifacts:
- path: build\reaper_*.dll
- path: build\*.exe
- path: build\reaper_*64.pdb
- path: scripts\ReaBlink_Monitor.lua
environment:
BUILD_NUMBER: $(APPVEYOR_BUILD_NUMBER)
REPO_COMMIT: $(APPVEYOR_REPO_COMMIT)
REPO_TAG: $(APPVEYOR_REPO_TAG_NAME)
matrix:
- job_name: macOS x86 32-bit
appveyor_build_worker_image: macos-mojave
ARCH: i386
- job_name: macOS x86 64-bit
appveyor_build_worker_image: macos-mojave
ARCH: x86_64
- job_name: Linux ARM 32-bit
appveyor_build_worker_image: *linux
ARCH: armv7l
- job_name: Windows 64-bit
appveyor_build_worker_image: *windows
ARCH: x64
- job_name: macOS universal 64-bit
appveyor_build_worker_image: macos-catalina
ARCH: arm64;x86_64
- job_name: macOS ARM 64-bit
appveyor_build_worker_image: macos-catalina
ARCH: arm64
- job_name: Windows 32-bit
appveyor_build_worker_image: *windows
ARCH: x86
- job_name: Linux x86 32-bit
appveyor_build_worker_image: *linux
ARCH: i686
- job_name: Linux x86 64-bit
appveyor_build_worker_image: *linux
ARCH: x86_64
- job_name: Linux ARM 64-bit
appveyor_build_worker_image: *linux
ARCH: aarch64
deploy:
provider: GitHub
draft: true
description: ''
force_update: true
auth_token:
secure: Rk8do2Q/etdabjwIABBRdTJu1a4wYVu9Ltz8HJuC0wc3rz+hHUMGa3N7vTlsrd7z
artifact: /.*\.(dll|dylib|so|lua|exe|pkg|pdb)/
on:
APPVEYOR_REPO_TAG: true