Skip to content

Commit

Permalink
Tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
SoloJacobs committed Dec 15, 2024
1 parent a7e3887 commit 2462205
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/qemu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: docker/setup-qemu-action@v3
with:
platforms: arm64, i386
- name: "Create an example binary for AArch64"
run: go mod init hello
- run: |
run: |
go mod init hello
cat << EOL > hello.go
package main
func main() {
println("Hello, AArch64!")
}
EOL
- run: GOARCH=arm64 go build hello.go
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 --rm --platform linux/arm64 alpine uname -a
run: docker --platform i386 linux/arm64 run hello-world

0 comments on commit 2462205

Please sign in to comment.