@@ -7,7 +7,12 @@ permissions:
77
88jobs :
99 build :
10- runs-on : ubuntu-24.04
10+ name : Build ${{ matrix.runner == 'kernel-build' && 'x86_64' || 'aarch64' }}
11+ runs-on : ${{ matrix.runner }}
12+ strategy :
13+ fail-fast : false
14+ matrix :
15+ runner : [kernel-build, kernel-build-arm64]
1116
1217 steps :
1318 - name : Checkout code
2328 sudo apt-get install -y fuse3 cpu-checker podman
2429 sudo modprobe fuse # guarantee /dev/fuse
2530 if ! sudo kvm-ok ; then
26- echo "::error::KVM acceleration not available on this runner."
27- exit 1
31+ echo "::warning::KVM acceleration not available on this runner."
2832 fi
2933
3034 # Kernel build inside CIQ builder
@@ -33,22 +37,24 @@ jobs:
3337 set -euxo pipefail
3438 mkdir -p output
3539 df -h
36- ls -l .cont* -d
40+ cat /proc/cpuinfo
3741 podman run --rm --pull=always \
3842 --privileged \
3943 --device=/dev/fuse \
4044 --device=/dev/kvm \
4145 -v "$PWD":/src \
4246 -v "$PWD/output":/output \
47+ -v "$PWD/test_stuff.sh":/usr/libexec/kernel_build.sh \
4348 --security-opt label=disable \
4449 pulp.prod.ciq.dev/ciq/cicd/lts-images/builder \
4550 build_kernel.sh
51+ sudo dmesg
4652
4753 # Artifacts: qcow2 + metadata
4854 - name : Upload QCOW2 and metadata
4955 uses : actions/upload-artifact@v4
5056 with :
51- name : kernel-build
57+ name : kernel-build-${{ matrix.runner == 'kernel-build' && 'x86_64' || 'aarch64' }}
5258 path : |
5359 output/*.qcow2
5460 output/last_build_image.txt
5965 - name : Upload build & dmesg logs
6066 uses : actions/upload-artifact@v4
6167 with :
62- name : kernel-logs
68+ name : kernel-logs-${{ matrix.runner == 'kernel-build' && 'x86_64' || 'aarch64' }}
6369 path : |
6470 output/*.log
6571 retention-days : 7
0 commit comments