From c3f45d611e562d6008ae563cf185c5c8ea682eef Mon Sep 17 00:00:00 2001 From: Aleksandr Pasechnik Date: Tue, 3 Mar 2026 15:46:45 -0500 Subject: [PATCH] chore: sweep across qemu versions to see which ones do and dont work --- .github/workflows/test-qemu-versions.yml | 47 ++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/test-qemu-versions.yml diff --git a/.github/workflows/test-qemu-versions.yml b/.github/workflows/test-qemu-versions.yml new file mode 100644 index 000000000..dea04fe07 --- /dev/null +++ b/.github/workflows/test-qemu-versions.yml @@ -0,0 +1,47 @@ +name: Test QEMU versions for arm64 emulation + +on: + workflow_dispatch: + +jobs: + test-qemu: + runs-on: ubuntu-22.04 + strategy: + fail-fast: false + matrix: + qemu_image: + # v10.x - current era + - "tonistiigi/binfmt:qemu-v10.2.1" # current latest, known broken + - "tonistiigi/binfmt:qemu-v10.1.3" # released Feb 17 2026, day of last good build + - "tonistiigi/binfmt:qemu-v10.0.4" # Jan 2026 + # v9.x + - "tonistiigi/binfmt:qemu-v9.2.2" # reportedly has fix for segfault issue + - "tonistiigi/binfmt:qemu-v9.2.0" # known broken (Feb 2025 incident) + # v8.x + - "tonistiigi/binfmt:qemu-v8.1.5" # reported working in issue #245 + - "tonistiigi/binfmt:qemu-v8.1.4" + - "tonistiigi/binfmt:qemu-v8.0.4" + # v7.x - known good baseline + - "tonistiigi/binfmt:qemu-v7.0.0-28" + name: "QEMU ${{ matrix.qemu_image }}" + steps: + - name: Set up QEMU + uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 #v3.7.0 + with: + image: ${{ matrix.qemu_image }} + + - name: Show QEMU version + run: docker run --rm --privileged ${{ matrix.qemu_image }} --version + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: "Test: ubuntu:22.04 apt-get install (matching compresser stage)" + run: | + docker run --rm --platform linux/arm64 ubuntu:22.04 \ + bash -c "apt-get update && apt-get install -y zip binutils && echo 'SUCCESS: apt-get completed'" + + - name: "Test: alpine:3.16 apk add (matching builder stage)" + run: | + docker run --rm --platform linux/arm64 alpine:3.16 \ + sh -c "apk add --no-cache git make musl-dev gcc && echo 'SUCCESS: apk completed'"