File tree Expand file tree Collapse file tree 7 files changed +72
-136
lines changed Expand file tree Collapse file tree 7 files changed +72
-136
lines changed Original file line number Diff line number Diff line change 1+ rocky-9-kernel-builder
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Automated kernel build and test
2+ on : [push]
3+
4+ permissions :
5+ contents : read
6+ actions : read
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-24.04
11+
12+ steps :
13+ - name : Checkout code
14+ uses : actions/checkout@v4
15+ with :
16+ fetch-depth : 1
17+
18+ # Host deps + KVM / FUSE validation
19+ - name : Install host dependencies & verify KVM/FUSE
20+ run : |
21+ set -euxo pipefail
22+ sudo apt-get update
23+ sudo apt-get install -y fuse3 cpu-checker podman
24+ sudo modprobe fuse # guarantee /dev/fuse
25+ if ! sudo kvm-ok ; then
26+ echo "::error::KVM acceleration not available on this runner."
27+ exit 1
28+ fi
29+
30+ # Podman (root-ful)
31+ - name : Install Podman
32+ run : |
33+ sudo apt-get -y install podman
34+ podman --version
35+
36+ # Kernel build inside CIQ builder
37+ - name : Build kernel inside CIQ builder container
38+ run : |
39+ set -euxo pipefail
40+ mkdir -p output
41+ sudo podman run --rm --pull=always \
42+ --privileged \
43+ --device=/dev/fuse \
44+ --device=/dev/kvm \
45+ -v "$PWD":/src \
46+ -v "$PWD/output":/output \
47+ --security-opt label=disable \
48+ pulp.prod.ciq.dev/ciq/cicd/lts-images/builder \
49+ build_kernel.sh
50+
51+ # Artifacts: qcow2 + metadata
52+ - name : Upload QCOW2 and metadata
53+ uses : actions/upload-artifact@v4
54+ with :
55+ name : kernel-build
56+ path : |
57+ output/*.qcow2
58+ output/last_build_image.txt
59+ retention-days : 7
60+ if-no-files-found : warn
61+
62+ # Artifacts: logs
63+ - name : Upload build & dmesg logs
64+ uses : actions/upload-artifact@v4
65+ with :
66+ name : kernel-logs
67+ path : |
68+ output/*.log
69+ retention-days : 7
70+ if-no-files-found : warn
Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ modules.order
9494#
9595! .clang-format
9696! .cocciconfig
97+ ! .container-build-image
9798! .get_maintainer.ignore
9899! .gitattributes
99100! .gitignore
You can’t perform that action at this time.
0 commit comments