Compare commits
4 Commits
9d8cbc506a
...
ca7fc44a06
Author | SHA1 | Date |
---|---|---|
|
ca7fc44a06 | |
|
fcd3152d8a | |
|
6bc7671629 | |
|
d11e3282b2 |
33
README.md
33
README.md
|
@ -33,8 +33,41 @@ 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
|
||||
```
|
||||
|
||||
> [!NOTE]
|
||||
> If you are using [`docker/setup-buildx-action`](https://github.com/docker/setup-buildx-action),
|
||||
> this action should come before it:
|
||||
>
|
||||
> ```yaml
|
||||
> -
|
||||
> name: Set up QEMU
|
||||
> uses: docker/setup-qemu-action@v3
|
||||
> -
|
||||
> name: Set up Docker Buildx
|
||||
> uses: docker/setup-buildx-action@v3
|
||||
> ```
|
||||
|
||||
## Customizing
|
||||
|
||||
### inputs
|
||||
|
|
Loading…
Reference in New Issue