Skip to content

Commit 03618ae

Browse files
committed
cd: add MacOS arm64 cross job
1 parent ef783ff commit 03618ae

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

.github/workflows/cd.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
script-id: [win32, win64, mac]
14+
script-id: [win32, win64, mac, mac_arm64_cross]
1515
env:
1616
FILE_ENV: ./cd/00_setup_env_${{ matrix.script-id }}.sh
1717
OS_NAME: linux

cd/00_setup_env_mac_arm64_cross.sh

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Copyright (c) 2019-2020 The Bitcoin Core developers
4+
# Distributed under the MIT software license, see the accompanying
5+
# file COPYING or https://opensource.org/licenses/mit-license.php.
6+
7+
export LC_ALL=C.UTF-8
8+
9+
export CONTAINER_NAME=cd_macos_arm64_cross
10+
export DOCKER_NAME_TAG=ubuntu:24.04
11+
export HOST=arm64-apple-darwin
12+
export PACKAGES="clang lld llvm cmake imagemagick libcap-dev librsvg2-bin libz-dev libbz2-dev libtiff-tools python3-dev python3-setuptools xorriso"
13+
export XCODE_VERSION=15.0
14+
export XCODE_BUILD_ID=15A240d
15+
export GRIDCOIN_CONFIG="--with-gui --enable-reduce-exports"

cd/06_script_b.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ if [[ $HOST = *-apple-* ]]; then
1212
KV=$(cat $BASE_ROOT_DIR/depends/hosts/darwin.mk | grep "OSX_MIN_VERSION=")
1313
VER=${KV#OSX_MIN_VERSION=}
1414
for f in /tmp/release/*.dmg; do
15-
mv $f ${f%.dmg}-min-$VER.dmg
15+
if [[ $HOST = x86_64-* ]]; then
16+
mv $f ${f%.dmg}-min-$VER.dmg
17+
else
18+
mv $f ${f%.dmg}_arm64-min-$VER.dmg
19+
fi
1620
done
1721
fi
1822

0 commit comments

Comments
 (0)