Skip to content

Commit

Permalink
cd: add MacOS arm64 cross job
Browse files Browse the repository at this point in the history
  • Loading branch information
div72 committed Sep 16, 2024
1 parent b32289a commit cbba203
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
script-id: [win32, win64, mac]
script-id: [win32, win64, mac, mac_arm64_cross]
env:
FILE_ENV: ./cd/00_setup_env_${{ matrix.script-id }}.sh
OS_NAME: linux
Expand Down
15 changes: 15 additions & 0 deletions cd/00_setup_env_mac_arm64_cross.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash
#
# Copyright (c) 2019-2020 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or https://opensource.org/licenses/mit-license.php.

export LC_ALL=C.UTF-8

export CONTAINER_NAME=cd_macos_arm64_cross
export DOCKER_NAME_TAG=ubuntu:24.04
export HOST=arm64-apple-darwin
export PACKAGES="clang lld llvm cmake imagemagick libcap-dev librsvg2-bin libz-dev libbz2-dev libtiff-tools python3-dev python3-setuptools xorriso"
export XCODE_VERSION=15.0
export XCODE_BUILD_ID=15A240d
export GRIDCOIN_CONFIG="--with-gui --enable-reduce-exports"
6 changes: 5 additions & 1 deletion cd/06_script_b.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ if [[ $HOST = *-apple-* ]]; then
KV=$(cat $BASE_ROOT_DIR/depends/hosts/darwin.mk | grep "OSX_MIN_VERSION=")
VER=${KV#OSX_MIN_VERSION=}
for f in /tmp/release/*.dmg; do
mv $f ${f%.dmg}-min-$VER.dmg
if [[ $HOST = x86_64-* ]]; then
mv $f ${f%.dmg}-min-$VER.dmg
else
mv $f ${f%.dmg}_arm64-min-$VER.dmg
fi
done
fi

Expand Down

0 comments on commit cbba203

Please sign in to comment.