mirror of
https://github.com/docker/setup-qemu-action.git
synced 2026-05-13 05:48:08 +00:00
Compare commits
6 Commits
ca7fc44a06
...
0414d4d959
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0414d4d959 | ||
|
|
737ba1e397 | ||
|
|
7a388d81f1 | ||
|
|
5a7ea16bc4 | ||
|
|
a2fd8cfed3 | ||
|
|
d11e3282b2 |
17
.github/workflows/pr-assign-author.yml
vendored
Normal file
17
.github/workflows/pr-assign-author.yml
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
name: pr-assign-author
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request_target:
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
- reopened
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
run:
|
||||||
|
uses: crazy-max/.github/.github/workflows/pr-assign-author.yml@1b673f36fad86812f538c1df9794904038a23cbf
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pull-requests: write
|
||||||
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@ -15,10 +15,14 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
-
|
||||||
|
name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
-
|
-
|
||||||
name: Test
|
name: Test
|
||||||
uses: docker/bake-action@v6
|
uses: docker/bake-action@v6
|
||||||
with:
|
with:
|
||||||
|
source: .
|
||||||
targets: test
|
targets: test
|
||||||
-
|
-
|
||||||
name: Upload coverage
|
name: Upload coverage
|
||||||
|
|||||||
20
README.md
20
README.md
@ -33,6 +33,26 @@ jobs:
|
|||||||
-
|
-
|
||||||
name: Set up QEMU
|
name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v3
|
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]
|
> [!NOTE]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user