Running on ARM64 fails
protoblade opened this issue · 4 comments
Bug Report
when migrating from x86_64 to arm64 (aws graviton) the build started to get the following error
Workflow File
- name: Code Coverage Summary Report
uses: irongut/CodeCoverageSummary@v1.3.0
with:
filename: coverage.cobertura.xml
badge: true
fail_below_min: true
format: markdown
hide_branch_rate: false
hide_complexity: true
indicators: true
output: both
thresholds: '0 80'
Actions Log
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
Expected Behavior
Runs on arm as on x86
Additional Context
no
Linked To
none
@protoblade Afaik all GitHub hosted runners use x86_64, I assume you're using a self hosted runner for this?
I'll give it some thought over the weekend.
The problem is CCS uses a cached image created at release to speed up workflows that use it. The cached image is built on an x86 runner so the image is x86. Without the cached image using CCS adds an extra 30 - 40s to the workflow run time.
An ARM64 runner would create a release that caches an ARM64 image instead. The action definition would need to select the correct image.
Potential ways to select the image:
- different action definition for each release, selected by tags; prone to mistakes by me and potentially confusing for users
- change action definition to run a shell script that pulls the correct image
- fork that only changes the image used
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 30 days.
This issue was closed because it has been stale for 30 days with no activity.