File tree Expand file tree Collapse file tree 4 files changed +14
-7
lines changed Expand file tree Collapse file tree 4 files changed +14
-7
lines changed Original file line number Diff line number Diff line change
1
+ rocky-9-kernel-builder
Original file line number Diff line number Diff line change @@ -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."
28
32
fi
29
33
30
34
# Kernel build inside CIQ builder
@@ -33,13 +37,14 @@ jobs:
33
37
set -euxo pipefail
34
38
mkdir -p output
35
39
df -h
36
- ls -l .cont* -d
40
+ cat /proc/cpuinfo
37
41
podman run --rm --pull=always \
38
42
--privileged \
39
43
--device=/dev/fuse \
40
44
--device=/dev/kvm \
41
45
-v "$PWD":/src \
42
46
-v "$PWD/output":/output \
47
+ -v /bin/true:/usr/libexec/kernel_build.sh \
43
48
--security-opt label=disable \
44
49
pulp.prod.ciq.dev/ciq/cicd/lts-images/builder \
45
50
build_kernel.sh
48
53
- name : Upload QCOW2 and metadata
49
54
uses : actions/upload-artifact@v4
50
55
with :
51
- name : kernel-build
56
+ name : kernel-build-${{ matrix.runner == 'kernel-build' && 'x86_64' || 'aarch64' }}
52
57
path : |
53
58
output/*.qcow2
54
59
output/last_build_image.txt
59
64
- name : Upload build & dmesg logs
60
65
uses : actions/upload-artifact@v4
61
66
with :
62
- name : kernel-logs
67
+ name : kernel-logs-${{ matrix.runner == 'kernel-build' && 'x86_64' || 'aarch64' }}
63
68
path : |
64
69
output/*.log
65
70
retention-days : 7
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ modules.order
94
94
#
95
95
! .clang-format
96
96
! .cocciconfig
97
- ! .container-build-image
97
+ ! .container_build_image
98
98
! .get_maintainer.ignore
99
99
! .gitattributes
100
100
! .gitignore
Original file line number Diff line number Diff line change
1
+ Test
You can’t perform that action at this time.
0 commit comments