Comment by ncruces

Comment by ncruces 2 days ago

1 reply

If you're using Go, you can also run tests with QEMU binfmt on Linux.

https://wiki.debian.org/QemuUserEmulation

Many people don't know this, but on a correctly configured amd64 Linux box this just works:

$ GOARCH=s930x go test

The test is cross compiled, and then run with QEMU user mode emulation.

Configuring this for GitHub Actions is a single dependency: docker/setup-qemu-action@v3

Also, if you want to test different OSes, there are a couple of actions to accomplish it.

I'll probably be integrating these Linux ARM instances, but this workflow should give you an idea of what was already possible with the existing runners:

https://github.com/ncruces/go-sqlite3/blob/main/.github/work...