Skip to content

Commit fad5a71

Browse files
author
MarcoFalke
committed
ci: Add macOS cross task for arm64
1 parent fa8c750 commit fad5a71

File tree

4 files changed

+29
-3
lines changed

4 files changed

+29
-3
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,12 +446,18 @@ jobs:
446446
timeout-minutes: 120
447447
file-env: './ci/test/00_setup_env_native_asan.sh'
448448

449-
- name: 'macOS-cross, gui, no tests'
449+
- name: 'macOS-cross to arm64'
450450
cirrus-runner: 'ghcr.io/cirruslabs/ubuntu-runner-amd64:24.04-sm'
451451
fallback-runner: 'ubuntu-24.04'
452452
timeout-minutes: 120
453453
file-env: './ci/test/00_setup_env_mac_cross.sh'
454454

455+
- name: 'macOS-cross to x86_64'
456+
cirrus-runner: 'ghcr.io/cirruslabs/ubuntu-runner-amd64:24.04-sm'
457+
fallback-runner: 'ubuntu-24.04'
458+
timeout-minutes: 120
459+
file-env: './ci/test/00_setup_env_mac_cross_intel.sh'
460+
455461
- name: 'No wallet, libbitcoinkernel'
456462
cirrus-runner: 'ghcr.io/cirruslabs/ubuntu-runner-amd64:24.04-sm'
457463
fallback-runner: 'ubuntu-24.04'

ci/test/00_setup_env_mac_cross.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export SDK_URL=${SDK_URL:-https://bitcoincore.org/depends-sources/sdks}
1010

1111
export CONTAINER_NAME=ci_macos_cross
1212
export CI_IMAGE_NAME_TAG="mirror.gcr.io/ubuntu:24.04"
13-
export HOST=x86_64-apple-darwin
13+
export HOST=arm64-apple-darwin
1414
export PACKAGES="clang lld llvm zip"
1515
export XCODE_VERSION=15.0
1616
export XCODE_BUILD_ID=15A240d
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Copyright (c) 2019-present The Bitcoin Core developers
4+
# Distributed under the MIT software license, see the accompanying
5+
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
6+
7+
export LC_ALL=C.UTF-8
8+
9+
export SDK_URL=${SDK_URL:-https://bitcoincore.org/depends-sources/sdks}
10+
11+
export CONTAINER_NAME=ci_macos_cross_intel
12+
export CI_IMAGE_NAME_TAG="mirror.gcr.io/ubuntu:24.04"
13+
export HOST=x86_64-apple-darwin
14+
export PACKAGES="clang lld llvm zip"
15+
export XCODE_VERSION=15.0
16+
export XCODE_BUILD_ID=15A240d
17+
export RUN_UNIT_TESTS=false
18+
export RUN_FUNCTIONAL_TESTS=false
19+
export GOAL="deploy"
20+
export BITCOIN_CONFIG="-DBUILD_GUI=ON -DREDUCE_EXPORTS=ON"

depends/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ Common `host-platform-triplet`s for cross compilation are:
123123
- `i686-pc-linux-gnu` for Linux x86 32 bit
124124
- `x86_64-pc-linux-gnu` for Linux x86 64 bit
125125
- `x86_64-w64-mingw32` for Win64
126-
- `x86_64-apple-darwin` for macOS
126+
- `x86_64-apple-darwin` for Intel macOS
127127
- `arm64-apple-darwin` for ARM macOS
128128
- `arm-linux-gnueabihf` for Linux ARM 32 bit
129129
- `aarch64-linux-gnu` for Linux ARM 64 bit

0 commit comments

Comments
 (0)