Skip to content

Commit 3fb72ae

Browse files
committed
CI: Fix error when running on host-arm
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 shecc on an Armv7 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/armv7 resolves this issue.
1 parent 6261f31 commit 3fb72ae

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/main.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,11 @@ jobs:
3434
- name: build artifact
3535
# The GitHub Action for non-x86 CPU
3636
# https://github.com/uraimo/run-on-arch-action
37-
uses: uraimo/run-on-arch-action@v2.7.1
37+
uses: uraimo/run-on-arch-action@v2
3838
with:
39-
arch: armv7
40-
distro: ubuntu22.04
39+
arch: none
40+
distro: none
41+
base_image: "--platform=linux/arm/v7 arm32v7/ubuntu:22.04"
4142
install: |
4243
apt-get update -q -y
4344
apt-get install -q -y build-essential

0 commit comments

Comments
 (0)