diff --git a/.github/workflows/cross.yml b/.github/workflows/cross.yml index 345408cf..73a73c5d 100644 --- a/.github/workflows/cross.yml +++ b/.github/workflows/cross.yml @@ -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 @@ -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 diff --git a/.github/workflows/docker-boot.sh b/.github/workflows/docker-boot.sh index f294f06d..b513b1e1 100755 --- a/.github/workflows/docker-boot.sh +++ b/.github/workflows/docker-boot.sh @@ -3,6 +3,7 @@ PATH=$PATH:/sbin image=ubuntu:jammy +platform=linux/amd64 qemu=qemu-system-x86_64 opts="-bios bios.bin" console=ttyS0 @@ -23,7 +24,7 @@ td=$(mktemp -d) # Generate system and build in the Docker. docker build --tag test -f - . <