GitHub Action to install QEMU static binaries
Find a file
Solomon Jacobs d11e3282b2 Provide usage examples in README.md
We provide two simple examples of invoking `qemu-{arch}-static` (or more
precisely, we let the kernel do the invocation.)

Closes: #95

Signed-off-by: Solomon Jacobs <solomonjacobs@protonmail.com>
2024-12-15 10:54:34 +01:00
.github ci: publish as immutable action workflow 2024-10-25 13:11:58 +02:00
.yarn/plugins/@yarnpkg chore: add plugin-interactive-tools yarn pkg 2024-05-07 15:54:06 +02:00
__tests__ set docker.io domain for default binfmt image 2024-07-03 11:22:09 +02:00
dist chore: update generated content 2024-07-22 11:24:29 +02:00
src switch to Docker exec 2024-07-19 13:01:51 +02:00
.dockerignore update to yarn 3.6.3 2024-05-07 15:53:14 +02:00
.editorconfig Initial commit (docker/build-push-action#87) 2020-08-18 18:19:47 +02:00
.eslintignore chore: update dev dependencies 2023-09-09 18:26:33 +02:00
.eslintrc.json chore: update dev dependencies 2023-09-09 18:26:33 +02:00
.gitattributes update to yarn 3.6.3 2024-05-07 15:53:14 +02:00
.gitignore update to yarn 3.6.3 2024-05-07 15:53:14 +02:00
.prettierignore update to yarn 3.6.3 2024-05-07 15:53:14 +02:00
.prettierrc.json Initial commit (docker/build-push-action#87) 2020-08-18 18:19:47 +02:00
.yarnrc.yml chore: add plugin-interactive-tools yarn pkg 2024-05-07 15:54:06 +02:00
action.yml set docker.io domain for default binfmt image 2024-07-03 11:22:09 +02:00
codecov.yml ci: test workflow and codecov config 2023-02-21 09:42:52 +01:00
dev.Dockerfile update to yarn 3.6.3 2024-05-07 15:53:14 +02:00
docker-bake.hcl update to yarn 3.6.3 2024-05-07 15:53:14 +02:00
jest.config.ts add tests 2023-02-21 09:42:52 +01:00
LICENSE Initial commit (docker/build-push-action#87) 2020-08-18 18:19:47 +02:00
package.json build(deps): bump @docker/actions-toolkit from 0.34.0 to 0.35.0 2024-07-22 06:55:45 +00:00
README.md Provide usage examples in README.md 2024-12-15 10:54:34 +01:00
tsconfig.json add tests 2023-02-21 09:42:52 +01:00
yarn.lock build(deps): bump path-to-regexp from 6.2.2 to 6.3.0 2024-09-12 19:22:56 +00:00

GitHub release GitHub marketplace CI workflow Test workflow Codecov

About

GitHub Action to install QEMU static binaries.

Screenshot


Usage

name: ci

on:
  push:

jobs:
  qemu:
    runs-on: ubuntu-latest
    steps:
      -
        name: Set up QEMU
        uses: docker/setup-qemu-action@v3
        with:
          platforms: arm64, i386
      -
        name: Create an example binary for AArch64
        run: |
          go mod init hello
          cat << EOL > hello.go
          package main

          func main() {
            println("Hello, AArch64!")
          }
          EOL
          GOARCH=arm64 go build hello.go          
      -
        name: This would fail without docker/setup-qemu-action
        run: ./hello
      -
        name: You can also run images from other platforms
        run: docker run --platform linux/i386 hello-world

Customizing

inputs

The following inputs can be used as step.with keys:

Name Type Default Description
image String tonistiigi/binfmt:latest QEMU static binaries Docker image
platforms String all Platforms to install (e.g., arm64,riscv64,arm)

outputs

The following outputs are available:

Name Type Description
platforms String Available platforms (comma separated)

Contributing

Want to contribute? Awesome! You can find information about contributing to this project in the CONTRIBUTING.md