Skip to content

Commit

Permalink
CI: Fix Docker multi-platform builds
Browse files Browse the repository at this point in the history
Docker now seems to require specifying the platform for ARM. But add it
for 386 too to make configuration generic.

JFYI, local list of platforms:

  docker buildx inspect --bootstrap

Platforms for the image(s):

  docker buildx imagetools inspect ubuntu:bionic

Fixes: #356
Signed-off-by: Vitaly Chikunov <[email protected]>
  • Loading branch information
vt-alt committed Oct 19, 2024
1 parent 0c28110 commit 43b73be
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/cross.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,13 @@ jobs:
matrix:
include:
- image: arm64v8/ubuntu:jammy
platform: linux/arm64
packages: libelf-dev linux-headers-generic
- image: arm32v7/alt:latest
platform: linux/arm/v7
packages: elfutils kernel-headers-modules-std-def
- image: i386/ubuntu:bionic
platform: linux/386
packages: libelf-dev linux-headers-generic
steps:
- uses: docker/setup-qemu-action@v2
Expand All @@ -44,6 +47,6 @@ jobs:
RUN make -j\$(nproc) KERNELRELEASE=\$(cd /lib/modules; ls)
RUN file lkrg.ko
EOF
- run: docker build .
- run: docker build --platform=${{ matrix.platform }} .

# vim: sw=4

0 comments on commit 43b73be

Please sign in to comment.