[HN Gopher] Show HN: Cross-Platform GitHub Action
___________________________________________________________________
Show HN: Cross-Platform GitHub Action
I've created a GitHub Action for running commands on multiple
platforms. This includes platforms that GitHub Actions don'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. Some of the features that are supported
include: * Multiple operating system with one single action *
Multiple versions of each operating system * Allows to use default
shell or Bash shell * Low boot overhead * Fast execution * Runs
on both macOS and Linux runners Compared to similar solutions like
https://github.com/vmactions/freebsd-vm, 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). The readme contains more
information about how it all works under the hood.
Author : JacobCarlborg
Score : 32 points
Date : 2023-01-16 19:30 UTC (3 hours ago)
(HTM) web link (github.com)
(TXT) w3m dump (github.com)
| adobrawy wrote:
| I previously tried to use Docker `docker/setup-qemu-action@v2`
| and `docker/setup-buildx-action@v2` for this purpose (see that
| example https://github.com/docker/build-push-action#git-context).
| 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.
|
| For a while, the blocker in GitHub Actions for providing ARM
| support was that Azure doesn't have ARM support. In this way, the
| Azure cloud offering may determine the habits of AWS consumers.
| [deleted]
| [deleted]
| elcritch wrote:
| awesome! This looks easier than setting up cross compilers for
| each platform.
___________________________________________________________________
(page generated 2023-01-16 23:00 UTC)