TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Cross-Platform GitHub Action

76 pointsby JacobCarlborgover 2 years ago
I&#x27;ve created a GitHub Action for running commands on multiple platforms. This includes platforms that GitHub Actions don&#x27;t natively support. It currently supports FreeBSD, OpenBSD and NetBSD. OpenBSD can run on x86-64 and ARM64, the other operating systems run on x86-64.<p>Some of the features that are supported include:<p>* Multiple operating system with one single action<p>* Multiple versions of each operating system<p>* Allows to use default shell or Bash shell<p>* Low boot overhead<p>* Fast execution<p>* Runs on both macOS and Linux runners<p>Compared to similar solutions like <a href="https:&#x2F;&#x2F;github.com&#x2F;vmactions&#x2F;freebsd-vm">https:&#x2F;&#x2F;github.com&#x2F;vmactions&#x2F;freebsd-vm</a>, the boot time is around a fifth and the full execution time for the same job is around half of freebsd-vm (last time I tried).<p>The readme contains more information about how it all works under the hood.

2 comments

adobrawyover 2 years ago
I previously tried to use Docker `docker&#x2F;setup-qemu-action@v2` and `docker&#x2F;setup-buildx-action@v2` for this purpose (see that example <a href="https:&#x2F;&#x2F;github.com&#x2F;docker&#x2F;build-push-action#git-context">https:&#x2F;&#x2F;github.com&#x2F;docker&#x2F;build-push-action#git-context</a>). Thanks to buildkit, platform switching works transparently. However, building on ARM via QEMU on GitHub Actions is terribly slow (something like 5 times more), which is hard to accept. Therefore, full of hope, I am waiting for GitHub Actions to make cloud runners available on ARM, because it is a blocker for the implementation of Graviton on the AWS environment for us.<p>For a while, the blocker in GitHub Actions for providing ARM support was that Azure doesn&#x27;t have ARM support. In this way, the Azure cloud offering may determine the habits of AWS consumers.
评论 #34409719 未加载
评论 #34409818 未加载
评论 #34406861 未加载
elcritchover 2 years ago
awesome! This looks easier than setting up cross compilers for each platform.
评论 #34409821 未加载