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