@@ -232,7 +232,7 @@ jobs:
232
232
if [ "${build_host_macos_x86_64}" == "y" ]; then
233
233
MATRIX_HOSTS+='{
234
234
"name": "macos-x86_64",
235
- "runner": "zephyr_runner- macos-x86_64 ",
235
+ "runner": "zephyr-runner- macos-arm64-2xlarge ",
236
236
"container": "",
237
237
"archive": "tar.xz"
238
238
},'
@@ -241,7 +241,7 @@ jobs:
241
241
if [ "${build_host_macos_aarch64}" == "y" ]; then
242
242
MATRIX_HOSTS+='{
243
243
"name": "macos-aarch64",
244
- "runner": "zephyr_runner- macos-x86_64 ",
244
+ "runner": "zephyr-runner- macos-arm64-2xlarge ",
245
245
"container": "",
246
246
"archive": "tar.xz"
247
247
},'
@@ -502,18 +502,18 @@ jobs:
502
502
fi
503
503
504
504
# Install dependencies for cross compilation
505
- if [ "${{ matrix.host.name }}" == "macos-aarch64 " ]; then
506
- # Clone x86- AArch64 crosskit
505
+ if [ "${{ matrix.host.name }}" == "macos-x86_64 " ]; then
506
+ # Clone AArch64-x86 crosskit
507
507
git clone \
508
- https://github.com/stephanosio/crosskit-aarch64 -apple-darwin.git \
508
+ https://github.com/stephanosio/crosskit-x86_64 -apple-darwin.git \
509
509
${WORKSPACE}/crosskit
510
510
511
511
# Make crosskit available in PATH
512
512
echo "${WORKSPACE}/crosskit/scripts" >> $GITHUB_PATH
513
513
fi
514
514
515
515
# Make Python 3.8 available in PATH
516
- echo "/usr/local /opt/[email protected] /bin" >> $GITHUB_PATH
516
+ echo "${HOMEBREW_PREFIX} /opt/[email protected] /bin" >> $GITHUB_PATH
517
517
518
518
# Set environment variables
519
519
echo "TAR=gtar" >> $GITHUB_ENV
@@ -538,9 +538,9 @@ jobs:
538
538
run : |
539
539
# Configure macOS build environment
540
540
if [ "$RUNNER_OS" == "macOS" ]; then
541
- export PATH="$PATH:/usr/local /opt/binutils/bin"
542
- export CPPFLAGS="-I/usr/local/ opt/ncurses/include -I/usr/local /opt/gettext/include"
543
- export LDFLAGS="-L/usr/local/ opt/ncurses/lib -L/usr/local /opt/gettext/lib"
541
+ export PATH="$PATH:${HOMEBREW_PREFIX} /opt/binutils/bin"
542
+ export CPPFLAGS="-I${HOMEBREW_PREFIX}/ opt/ncurses/include -I${HOMEBREW_PREFIX} /opt/gettext/include"
543
+ export LDFLAGS="-L${HOMEBREW_PREFIX}/ opt/ncurses/lib -L${HOMEBREW_PREFIX} /opt/gettext/lib"
544
544
fi
545
545
546
546
# Create build directory
@@ -639,11 +639,11 @@ jobs:
639
639
EOF
640
640
641
641
# Set Canadian cross compilation configurations
642
- if [ "${{ matrix.host.name }}" == "macos-aarch64 " ]; then
643
- # Building for macos-aarch64 on macos-x86_64
642
+ if [ "${{ matrix.host.name }}" == "macos-x86_64 " ]; then
643
+ # Building for macos-x86_64 on macos-aarch64
644
644
cat <<EOF >> .config
645
645
CT_CANADIAN=y
646
- CT_HOST="aarch64 -apple-darwin"
646
+ CT_HOST="x86_64 -apple-darwin"
647
647
EOF
648
648
elif [ "${{ matrix.host.name }}" == "windows-x86_64" ]; then
649
649
# Building for windows-x86_64 on linux-x86_64
@@ -659,13 +659,13 @@ jobs:
659
659
CT_GDB_CROSS_PYTHON_VARIANT=y
660
660
EOF
661
661
662
- if [ "${{ matrix.host.name }}" == "macos-aarch64 " ]; then
663
- # Clone crosskit-aarch64 -darwin-libpython cross compilation kit
662
+ if [ "${{ matrix.host.name }}" == "macos-x86_64 " ]; then
663
+ # Clone crosskit-x86_64 -darwin-libpython cross compilation kit
664
664
git clone \
665
- https://github.com/stephanosio/crosskit-aarch64 -darwin-libpython.git \
666
- ${WORKSPACE}/crosskit-aarch64 -darwin-libpython
665
+ https://github.com/stephanosio/crosskit-x86_64 -darwin-libpython.git \
666
+ ${WORKSPACE}/crosskit-x86_64 -darwin-libpython
667
667
# Use Python 3.8.12
668
- export LIBPYTHON_KIT_ROOT=${WORKSPACE}/crosskit-aarch64 -darwin-libpython/python-3.8.12
668
+ export LIBPYTHON_KIT_ROOT=${WORKSPACE}/crosskit-x86_64 -darwin-libpython/python-3.8.12
669
669
# Set Python configuration resolver for GDB
670
670
cat <<EOF >> .config
671
671
CT_GDB_CROSS_PYTHON_BINARY="${LIBPYTHON_KIT_ROOT}/bin/python"
@@ -708,9 +708,9 @@ jobs:
708
708
popd
709
709
710
710
# Resolve output directory path
711
- if [ "${{ matrix.host.name }}" == "macos-aarch64 " ]; then
711
+ if [ "${{ matrix.host.name }}" == "macos-x86_64 " ]; then
712
712
OUTPUT_BASE="${WORKSPACE}/output"
713
- OUTPUT_DIR="HOST-aarch64 -apple-darwin"
713
+ OUTPUT_DIR="HOST-x86_64 -apple-darwin"
714
714
elif [ "${{ matrix.host.name }}" == "windows-x86_64" ]; then
715
715
OUTPUT_BASE="${WORKSPACE}/output"
716
716
OUTPUT_DIR="HOST-x86_64-w64-mingw32"
0 commit comments