Skip to content

Commit 07e4cf2

Browse files
committed
CI: Fix error when running on host-arm64
When pulling a base image from Docker Hub, the architecture defaults to that of the native host, which is typically x86_64 or amd64 on GitHub runners. Since the run-on-arch-action GitHub Action aims to run rv32emu on an ARM64 Ubuntu image, it attempts to pull the native host manifest (either x86_64 or amd64), resulting in a 'no match for platform in manifest' error unless the --platform option is specified. Therefore, specifying the --platform option as linux/arm64 resolves this issue. Close #502
1 parent edb5a1b commit 07e4cf2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,9 @@ jobs:
9494
# https://github.com/uraimo/run-on-arch-action
9595
uses: uraimo/run-on-arch-action@v2
9696
with:
97-
arch: aarch64
98-
distro: ubuntu22.04
97+
arch: none
98+
distro: none
99+
base_image: "--platform=linux/arm64 arm64v8/ubuntu:22.04"
99100
# No 'sudo' is available
100101
install: |
101102
apt-get update -q -y

0 commit comments

Comments
 (0)