|
| 1 | +name: Test QEMU versions for arm64 emulation |
| 2 | + |
| 3 | +on: |
| 4 | + workflow_dispatch: |
| 5 | + |
| 6 | +jobs: |
| 7 | + test-qemu: |
| 8 | + runs-on: ubuntu-22.04 |
| 9 | + strategy: |
| 10 | + fail-fast: false |
| 11 | + matrix: |
| 12 | + qemu_image: |
| 13 | + # v10.x - current era |
| 14 | + - "tonistiigi/binfmt:qemu-v10.2.1" # current latest, known broken |
| 15 | + - "tonistiigi/binfmt:qemu-v10.1.3" # released Feb 17 2026, day of last good build |
| 16 | + - "tonistiigi/binfmt:qemu-v10.0.4" # Jan 2026 |
| 17 | + # v9.x |
| 18 | + - "tonistiigi/binfmt:qemu-v9.2.2" # reportedly has fix for segfault issue |
| 19 | + - "tonistiigi/binfmt:qemu-v9.2.0" # known broken (Feb 2025 incident) |
| 20 | + # v8.x |
| 21 | + - "tonistiigi/binfmt:qemu-v8.1.5" # reported working in issue #245 |
| 22 | + - "tonistiigi/binfmt:qemu-v8.1.4" |
| 23 | + - "tonistiigi/binfmt:qemu-v8.0.4" |
| 24 | + # v7.x - known good baseline |
| 25 | + - "tonistiigi/binfmt:qemu-v7.0.0-28" |
| 26 | + name: "QEMU ${{ matrix.qemu_image }}" |
| 27 | + steps: |
| 28 | + - name: Set up QEMU |
| 29 | + uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 #v3.7.0 |
| 30 | + with: |
| 31 | + image: ${{ matrix.qemu_image }} |
| 32 | + |
| 33 | + - name: Show QEMU version |
| 34 | + run: docker run --rm --privileged ${{ matrix.qemu_image }} --version |
| 35 | + |
| 36 | + - name: Set up Docker Buildx |
| 37 | + uses: docker/setup-buildx-action@v3 |
| 38 | + |
| 39 | + - name: "Test: ubuntu:22.04 apt-get install (matching compresser stage)" |
| 40 | + run: | |
| 41 | + docker run --rm --platform linux/arm64 ubuntu:22.04 \ |
| 42 | + bash -c "apt-get update && apt-get install -y zip binutils && echo 'SUCCESS: apt-get completed'" |
| 43 | +
|
| 44 | + - name: "Test: alpine:3.16 apk add (matching builder stage)" |
| 45 | + run: | |
| 46 | + docker run --rm --platform linux/arm64 alpine:3.16 \ |
| 47 | + sh -c "apk add --no-cache git make musl-dev gcc && echo 'SUCCESS: apk completed'" |
0 commit comments