From d5ee7432882d0b41d5263b444c63ac391ff70b63 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Sun, 13 Oct 2024 02:13:34 +0200 Subject: [PATCH] CI: test Docker ubuntu-small and ubuntu-full on linux/arm64 as well --- .github/workflows/docker.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 59dabdb3d477..7b34b00db0f2 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -25,14 +25,24 @@ jobs: matrix: include: - name: alpine-small + arch: linux/amd64 - name: alpine-normal + arch: linux/amd64 - name: ubuntu-small + arch: linux/amd64 + + - name: ubuntu-small + arch: linux/arm64 + + - name: ubuntu-full + arch: linux/amd64 - name: ubuntu-full + arch: linux/arm64 - name: ${{ matrix.name }} + name: ${{ matrix.name }}-${{ matrix.arch }} runs-on: ubuntu-latest @@ -43,5 +53,6 @@ jobs: - name: Build shell: bash -l {0} run: | + docker run --rm --privileged linuxkit/binfmt:v0.8 cd docker/${{ matrix.name }} - ./build.sh --platform linux/amd64 + ./build.sh --platform ${{ matrix.arch }}