File tree Expand file tree Collapse file tree 6 files changed +66
-136
lines changed Expand file tree Collapse file tree 6 files changed +66
-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
+ podman run --rm --pull=always \
37
+ --privileged \
38
+ --device=/dev/fuse \
39
+ --device=/dev/kvm \
40
+ -v "$PWD":/src \
41
+ -v "$PWD/output":/output \
42
+ --security-opt label=disable \
43
+ pulp.prod.ciq.dev/ciq/cicd/lts-images/builder \
44
+ build_kernel.sh
45
+
46
+ # Artifacts: qcow2 + metadata
47
+ - name : Upload QCOW2 and metadata
48
+ uses : actions/upload-artifact@v4
49
+ with :
50
+ name : kernel-build
51
+ path : |
52
+ output/*.qcow2
53
+ output/last_build_image.txt
54
+ retention-days : 7
55
+ if-no-files-found : warn
56
+
57
+ # Artifacts: logs
58
+ - name : Upload build & dmesg logs
59
+ uses : actions/upload-artifact@v4
60
+ with :
61
+ name : kernel-logs
62
+ path : |
63
+ output/*.log
64
+ retention-days : 7
65
+ 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