ci release: add macos arm64 support (#1179)

This commit is contained in:
Jefferson González
2022-10-30 11:48:20 -04:00
committed by GitHub
parent 8a9bac7de3
commit d89d1e6d98
5 changed files with 43 additions and 8 deletions
+7 -1
View File
@@ -31,6 +31,7 @@ show_help() {
main() {
local platform="$(get_platform_name)"
local arch="$(get_platform_arch)"
local build_dir="$(get_default_build_dir)"
local build_type="debug"
local prefix=/
@@ -106,11 +107,16 @@ main() {
portable=""
fi
if [[ $platform == "macos" && $arch == "arm64" ]]; then
cross_file="--cross-file resources/macos/macos_arm64.conf"
fi
rm -rf "${build_dir}"
CFLAGS=$CFLAGS LDFLAGS=$LDFLAGS meson setup \
--buildtype=$build_type \
--prefix "$prefix" \
$cross_file \
$force_fallback \
$bundle \
$portable \
@@ -124,7 +130,7 @@ main() {
meson compile -C "${build_dir}"
if [ ! -z ${pgo+x} ]; then
if [[ $pgo != "" ]]; then
cp -r data "${build_dir}/src"
"${build_dir}/src/lite-xl"
meson configure -Db_pgo=use "${build_dir}"