Add self-hosted macOS runner support?
See original GitHub issueBehaviour
Docker Desktop works on macOS (Docker runs in a Linux VM managed by Docker Desktop).
GitHub Actions docs say only Linux runners are supported for Docker builds.
Multi-arch builds on GitHub hosted runners via setup-qemu-action
are INSANELY slow (from 10 minutes to 1.5 hours). The same multi-arch builds on my Intel MacBook Pro with Docker Desktop is very fast.
It would be great if I could utilise my own hardware to build multi-arch images quickly with GitHub Actions.
Steps to reproduce this issue
Send a job using setup-qemu-action
to a self hosted macOS runner.
Expected behaviour
setup-qemu-action
should work on self hosted macOS runners.
Actual behaviour
When I attempt a build on a self-hosted macOS runner I get this error:
Error: Only supported on linux platform
Configuration
name: ci
on:
push:
branches:
- '*multiarch'
jobs:
ci:
runs-on:
- macOS
- self-hosted
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Docker meta
id: docker_meta
uses: crazy-max/ghaction-docker-meta@v1
with:
images: FOO/BAR
tag-sha: true
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
... snipped since error occurs in `setup-qemu-action`
Logs
Run docker/setup-qemu-action@v1
with:
image: tonistiigi/binfmt:latest
platforms: all
Error: Only supported on linux platform
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Adding self-hosted runners - GitHub Docs
Adding a self-hosted runner to an organization · On GitHub.com, navigate to the main page of the organization. · Under your organization name,...
Read more >Run GitHub Actions Self-hosted macOS Runners on Apple M1 ...
You can create a self-hosted runner at either repository level or organization level or enterprise level. To do so, navigate to the Settings...
Read more >Set up runners for MacOS | Bitbucket Cloud - Atlassian Support
Navigate to the Runners page: · Select Add runner. · From the Runner installation dialog, under System and architecture, select MacOS (x86 /...
Read more >Self-hosted runners now support Apple M1 hardware
macOS ARM64 does not support node12. Therefore, the runner will automatically use node16 to execute any javascript Action written for node12.
Read more >Github Actions self hosted runner - YouTube
docs: https://docs.github.com/en/actions/hosting-your-own- runners /about- self - hosted -runnersFollow me on Twitter for more content: ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Why would it detect it as macos then if it is already in Linux container.
@crazy-max Anyway, I think we can allow this if
docker
is available.@mrmachine I’ve removed os limitation (#30). Can you try with
crazy-max/docker-setup-qemu-action@remove-limitation
?