-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.appveyor.yml
173 lines (155 loc) · 6.1 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
---
version: "{build}-{branch}"
stack: python 3
install:
- sh: sudo -H "$(command -v python3)" -m ensurepip --upgrade
- sh: sudo -H "$(command -v pip3)" install meson
- cmd: pip3 install meson
- git submodule update --init --depth 1
build_script:
- sh: meson setup build --buildtype=release ${meson_options[@]}
-Dcpp_std=c++17 -Dbuild.cpp_std=c++17 -Dexamples=enabled
- cmd: meson setup build --buildtype=debugoptimized -Dexamples=enabled
- ninja -C build
test_script:
- meson test -vC build reaimgui
artifacts:
- path: build/examples/gfx2imgui.lua
- path: build/imgui.py
- path: build/imgui_defs.lua
- path: build/reaper_imgui*.*
for:
- matrix: { only: [ appveyor_build_worker_image: &linux Ubuntu1804 ] }
cache:
- $HOME/.cache/pip -> .appveyor.yml
- subprojects/packagecache -> subprojects/*.wrap
before_build: |-
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=("$@" ninja-build php-cli)
local target=(libgtk-3-dev)
sudo dpkg --add-architecture $arch
sudo apt-get update -qq --allow-releaseinfo-change
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 pkg-config:i386
crossfile=i686-linux-gnu
;;
armv7l)
install-deps armhf g++-arm-linux-gnueabihf qemu-user
crossfile=arm-linux-gnueabihf
;;
aarch64)
install-deps arm64 g++-aarch64-linux-gnu qemu-user
crossfile=aarch64-linux-gnu
;;
esac
if [ -n "${crossfile+x}" ]; then
meson_options+=(--cross-file "cross/$crossfile.ini")
fi
- matrix: { only: [ appveyor_build_worker_image: macos-sonoma,
appveyor_build_worker_image: macos-bigsur,
appveyor_build_worker_image: macos-mojave ] }
cache:
- $HOME/Library/Caches/pip -> .appveyor.yml
- subprojects/packagecache -> subprojects/*.wrap
before_build:
- |-
case $ARCH in
arm64) export MACOSX_DEPLOYMENT_TARGET=11.0 XCODE_VERSION=15.2.0 ;;
x86_64) export MACOSX_DEPLOYMENT_TARGET=10.9 XCODE_VERSION=13.2.1 ;;
i386) export MACOSX_DEPLOYMENT_TARGET=10.9 XCODE_VERSION=9.4.1 ;;
esac
sudo xcode-select -s /Applications/Xcode-$XCODE_VERSION.app
# fixes this warning when linking in 32-bit builds:
# building for OSX, but linking against dylib (xxx.dylib) built for (unknown)
- export SDKROOT=$(xcrun --sdk macosx --show-sdk-path)
- |-
crossfile="cross/$ARCH-darwin.ini"
if [ -f "$crossfile" ]; then
meson_options+=(--cross-file "$crossfile")
fi
# don't use libraries from /Library/Frameworks/Mono.framework
- force_fallback=(freetype2 libpng)
# libpng >= 1.6.26 needs zlib >= 1.2.8.1's inflateValidate
# (shipped only since macOS 10.13)
- if [ "$ARCH" != 'arm64' ]; then force_fallback+=(zlib); fi
- meson_options+=(--force-fallback-for="$(IFS=,; echo "${force_fallback[*]}")")
# https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/
- |-
if [ "$appveyor_build_worker_image" = "macos-mojave" ]; then
sudo curl -k https://curl.se/ca/cacert.pem -o /etc/ssl/cert.pem
fi
# NASM is required to build libjpeg-turbo with SIMD
- curl -O 'https://www.nasm.us/pub/nasm/releasebuilds/2.16.01/macosx/nasm-2.16.01-macosx.zip'
- unzip -j nasm-*-macosx.zip "nasm-*/nasm" -d /usr/local/bin
- sudo -H pip3 install ninja
- matrix: { only: [ appveyor_build_worker_image: &windows Visual Studio 2022 ] }
cache:
- '%LocalAppData%\pip\Cache -> .appveyor.yml'
# override with a backslash to avoid "error calculating dependencies CRC:
# pattern contains invalid characters"
- subprojects/packagecache -> subprojects\*.wrap
before_build:
- set VCPATH="%ProgramFiles%\Microsoft Visual Studio\2022\Community"
- if "%ARCH%" == "x64" call %VCPATH%\VC\Auxiliary\Build\vcvars64.bat
- if "%ARCH%" == "x86" call %VCPATH%\VC\Auxiliary\Build\vcvars32.bat
after_test:
# avoid very long "Calculating dependencies checksum" phase
- git clean -fxdq -e subprojects/packagecache subprojects
environment:
matrix:
- job_name: Windows x86 64-bit
appveyor_build_worker_image: *windows
ARCH: x64
- job_name: Windows x86 32-bit
appveyor_build_worker_image: *windows
ARCH: x86
- job_name: macOS ARM 64-bit
appveyor_build_worker_image: macos-sonoma
ARCH: arm64
- job_name: macOS x86 64-bit
appveyor_build_worker_image: macos-bigsur
ARCH: x86_64
- job_name: macOS x86 32-bit
appveyor_build_worker_image: macos-mojave
ARCH: i386
- 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
deploy:
provider: GitHub
draft: true
description: ''
force_update: true
auth_token:
secure: 6dgJUqO2qAwADLQuvONd+mD5esFPBws7RA/3RSiEjrmquCsWpidm4ayawCPSEtfQ
artifact: /.*\.(dll|dylib|so)|reaper_imgui_(doc\.html|functions\.h)|imgui.*\.(lua|py)|reaper_imgui\.zig|gfx2imgui\.lua/
on:
APPVEYOR_REPO_TAG: true