Merge d11e3282b262b2705465c1a56bec7e09710faa1f into 8b562efa09ec1557a9e26f25a7c6292838acea94

This commit is contained in:
Solomon Jacobs 2024-12-15 09:55:38 +00:00 committed by GitHub
commit 8fbcf34d5b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -33,6 +33,26 @@ jobs:
-
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