GeezerVison is showing github.com — display binfmt version · docker/setup-qemu-action@17bc18b
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/ci.yml +19Lines changed: 19 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -102,3 +102,22 @@ jobs: |
102 | 102 | - |
103 | 103 | name: Available platforms |
104 | 104 | run: echo ${{ steps.qemu.outputs.platforms }} |
| 105 | + |
| 106 | + version: |
| 107 | + runs-on: ubuntu-latest |
| 108 | + strategy: |
| 109 | + fail-fast: false |
| 110 | + matrix: |
| 111 | + image: |
| 112 | + - tonistiigi/binfmt:master |
| 113 | + - tonistiigi/binfmt:latest |
| 114 | + - tonistiigi/binfmt:qemu-v7.0.0 |
| 115 | + steps: |
| 116 | + - |
| 117 | + name: Checkout |
| 118 | + uses: actions/checkout@v4 |
| 119 | + - |
| 120 | + name: Set up QEMU |
| 121 | + uses: ./ |
| 122 | + with: |
| 123 | + image: ${{ matrix.image }} |
Collapse file
Copy file name to clipboardExpand all lines: src/main.ts +10Lines changed: 10 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -33,6 +33,16 @@ actionsToolkit.run( |
33 | 33 | }); |
34 | 34 | }); |
35 | 35 |
|
| 36 | + await core.group(`Binfmt version`, async () => { |
| 37 | + await Docker.getExecOutput(['run', '--rm', '--privileged', input.image, '--version'], { |
| 38 | + ignoreReturnCode: true |
| 39 | + }).then(res => { |
| 40 | + if (res.stderr.length > 0 && res.exitCode != 0) { |
| 41 | + throw new Error(res.stderr.match(/(.*)\s*$/)?.[0]?.trim() ?? 'unknown error'); |
| 42 | + } |
| 43 | + }); |
| 44 | + }); |
| 45 | + |
36 | 46 | await core.group(`Installing QEMU static binaries`, async () => { |
37 | 47 | await Docker.getExecOutput(['run', '--rm', '--privileged', input.image, '--install', input.platforms], { |
38 | 48 | ignoreReturnCode: true |
|