mirror of
https://github.com/bensuperpc/dockcross.git
synced 2025-03-13 01:30:05 +01:00
ci: build multiarch base with ubuntu-22.04-arm
macos-15 (arm) still requires emulation and is too slow.
This commit is contained in:
parent
aac97dfb18
commit
1d459d9fbc
12
.github/workflows/main.yml
vendored
12
.github/workflows/main.yml
vendored
@ -52,7 +52,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
max-parallel: 5
|
max-parallel: 5
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-22.04, macos-15]
|
os: [ubuntu-22.04, ubuntu-22.04-arm]
|
||||||
steps:
|
steps:
|
||||||
- name: checkout code
|
- name: checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@ -60,16 +60,6 @@ jobs:
|
|||||||
submodules: "recursive"
|
submodules: "recursive"
|
||||||
fetch-depth: 1
|
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
|
- name: build multiarch
|
||||||
run: |
|
run: |
|
||||||
host_arch=$(uname -m | sed -e 's/x86_64/amd64/' -e 's/aarch64/arm64/')
|
host_arch=$(uname -m | sed -e 's/x86_64/amd64/' -e 's/aarch64/arm64/')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user