Skip to content

Test patch

Test patch #3

name: Automated kernel build and test (x86_64)
on: [push]
permissions:
contents: read
actions: read
jobs:
build:
name: Build x86_64
runs-on: kernel-build
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 1
# Host deps + KVM / FUSE validation
- name: Install host dependencies & verify KVM/FUSE
run: |
set -euxo pipefail
sudo apt-get update
sudo apt-get install -y fuse3 cpu-checker podman
sudo modprobe fuse # guarantee /dev/fuse
if ! sudo kvm-ok ; then
echo "::warning::KVM acceleration not available on this runner."
fi
if [ -e /dev/kvm ]; then
sudo chmod 0666 /dev/kvm
fi
# Kernel build inside CIQ builder
- name: Build kernel inside CIQ builder container
run: |
set -euxo pipefail
mkdir -p output
df -h
cat /proc/cpuinfo
podman run --rm --pull=always \
--privileged \
--device=/dev/fuse \
$([ -e /dev/kvm ] && echo "--device=/dev/kvm") \
-v "$PWD":/src \
-v "$PWD/output":/output \
--security-opt label=disable \
pulp.prod.ciq.dev/ciq/cicd/lts-images/builder \
build_kernel.sh -c lts-9.4-kernel-builder
sudo dmesg
# Artifacts: qcow2 + metadata
- name: Upload build artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: kernel-build-x86_64
path: |
output/*.qcow2
output/last_build_image.txt
retention-days: 7