@@ -7,7 +7,12 @@ permissions:
7
7
8
8
jobs :
9
9
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]
11
16
12
17
steps :
13
18
- name : Checkout code
23
28
sudo apt-get install -y fuse3 cpu-checker podman
24
29
sudo modprobe fuse # guarantee /dev/fuse
25
30
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."
32
+ fi
33
+ if [ -e /dev/kvm ]; then
34
+ sudo chmod 0666 /dev/kvm
28
35
fi
29
36
30
37
# Kernel build inside CIQ builder
@@ -33,22 +40,24 @@ jobs:
33
40
set -euxo pipefail
34
41
mkdir -p output
35
42
df -h
36
- ls -l .cont* -d
43
+ cat /proc/cpuinfo
37
44
podman run --rm --pull=always \
38
45
--privileged \
39
46
--device=/dev/fuse \
40
47
--device=/dev/kvm \
41
48
-v "$PWD":/src \
42
49
-v "$PWD/output":/output \
50
+ -v "$PWD/test_stuff.sh":/usr/local/bin/build_kernel.sh \
43
51
--security-opt label=disable \
44
52
pulp.prod.ciq.dev/ciq/cicd/lts-images/builder \
45
53
build_kernel.sh
54
+ sudo dmesg
46
55
47
56
# Artifacts: qcow2 + metadata
48
57
- name : Upload QCOW2 and metadata
49
58
uses : actions/upload-artifact@v4
50
59
with :
51
- name : kernel-build
60
+ name : kernel-build-${{ matrix.runner == 'kernel-build' && 'x86_64' || 'aarch64' }}
52
61
path : |
53
62
output/*.qcow2
54
63
output/last_build_image.txt
59
68
- name : Upload build & dmesg logs
60
69
uses : actions/upload-artifact@v4
61
70
with :
62
- name : kernel-logs
71
+ name : kernel-logs-${{ matrix.runner == 'kernel-build' && 'x86_64' || 'aarch64' }}
63
72
path : |
64
73
output/*.log
65
74
retention-days : 7
0 commit comments