Compare commits

...

2 Commits

Author SHA1 Message Date
Solomon Jacobs
488b08ae01
Merge e094f5825c into f8607cc714 2026-04-15 22:04:45 +00:00
Solomon Jacobs
e094f5825c 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>
2026-03-08 15:35:44 +01:00

View File

@ -33,6 +33,26 @@ jobs:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v4
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
```
> [!NOTE]