question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add self-hosted macOS runner support?

See original GitHub issue

Behaviour

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:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
tonistiigicommented, Apr 15, 2021

I run a GitHub self hosted runner in a container with docker desktop for Mac.

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.

0reactions
crazy-maxcommented, Apr 15, 2021

@mrmachine I’ve removed os limitation (#30). Can you try with crazy-max/docker-setup-qemu-action@remove-limitation?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found