mirror of
https://github.com/docker/setup-qemu-action.git
synced 2026-05-11 12:58:01 +00:00
Compare commits
4 Commits
10ad2d77da
...
59104f930f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
59104f930f | ||
|
|
76c0984808 | ||
|
|
de93a28d33 | ||
|
|
e094f5825c |
2
.github/workflows/pr-assign-author.yml
vendored
2
.github/workflows/pr-assign-author.yml
vendored
@ -11,7 +11,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
run:
|
run:
|
||||||
uses: crazy-max/.github/.github/workflows/pr-assign-author.yml@bb328ea508cd6a89d0865555ddbeb148e5724aed # v1.3.0
|
uses: crazy-max/.github/.github/workflows/pr-assign-author.yml@d89fe92d808a15e2b2ed5cdb62db7c172c31410d # v1.6.0
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
|
|||||||
2
.github/workflows/zizmor.yml
vendored
2
.github/workflows/zizmor.yml
vendored
@ -19,7 +19,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
zizmor:
|
zizmor:
|
||||||
uses: crazy-max/.github/.github/workflows/zizmor.yml@bb328ea508cd6a89d0865555ddbeb148e5724aed # v1.3.0
|
uses: crazy-max/.github/.github/workflows/zizmor.yml@d89fe92d808a15e2b2ed5cdb62db7c172c31410d # v1.6.0
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: write
|
security-events: write
|
||||||
|
|||||||
20
README.md
20
README.md
@ -33,6 +33,26 @@ jobs:
|
|||||||
-
|
-
|
||||||
name: Set up QEMU
|
name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v4
|
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]
|
> [!NOTE]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user