Skip to content

Commit 3b4d14c

Browse files
committed
Revamp automation (using Ishaan's as the baseline)
Signed-off-by: Jonathan Dieter <[email protected]>
1 parent 3590a63 commit 3b4d14c

File tree

7 files changed

+68
-136
lines changed

7 files changed

+68
-136
lines changed

.container_build_image

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rocky-9-kernel-builder

.github/workflows/build-check_aarch64-rt.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/build-check_aarch64.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/build-check_x86_64-rt.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/build-check_x86_64.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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 .* -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

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)