ci: build multiarch base with ubuntu-22.04-arm

macos-15 (arm) still requires emulation and is too slow.
This commit is contained in:
Matt McCormick 2025-01-17 14:54:47 -05:00
parent aac97dfb18
commit 1d459d9fbc

View File

@ -52,7 +52,7 @@ jobs:
strategy:
max-parallel: 5
matrix:
os: [ubuntu-22.04, macos-15]
os: [ubuntu-22.04, ubuntu-22.04-arm]
steps:
- name: checkout code
uses: actions/checkout@v4
@ -60,16 +60,6 @@ jobs:
submodules: "recursive"
fetch-depth: 1
- name: setup macos docker
if: ${{ matrix.os == 'macos-15' }}
run: |
# https://github.com/abiosoft/colima/issues/970
brew install qemu docker colima
LIMACTL_PATH=$(brew --prefix)/bin/limactl
sudo curl -L -o $LIMACTL_PATH https://github.com/mikekazakov/lima-nohvf/raw/master/limactl
sudo chmod +x $LIMACTL_PATH
colima start --network-address --arch arm64 --cpu 3 --memory 6
- name: build multiarch
run: |
host_arch=$(uname -m | sed -e 's/x86_64/amd64/' -e 's/aarch64/arm64/')