Skip to content

Commit db0f84f

Browse files
committed
github actions: Add skip_kabi workflow input for CLK kernel builds
CLK kernels don't require a kABI compatibility check. This change leverages the skipkabi support already built into the container's kernel_build.sh. The -u flag on build_kernel.sh overrides which underlying script the container runs, replacing the default with: /usr/local/bin/kernel_build.sh skipkabi A bash array is used for BUILD_ARGS so the podman invocation stays clean and the default (no skip_kabi) produces no behavioral change.
1 parent 7eaff9b commit db0f84f

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/kernel-build-and-test-multiarch.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
required: false
99
type: string
1010
default: 'x86_64,aarch64'
11+
skip_kabi:
12+
description: 'Skip kABI compatibility check'
13+
required: false
14+
type: boolean
15+
default: false
1116
secrets:
1217
APP_ID:
1318
required: true
@@ -103,6 +108,11 @@ jobs:
103108
df -h
104109
cat /proc/cpuinfo
105110
chmod +x kernel-container-build/build-container/*.sh
111+
BUILD_ARGS=()
112+
if [ "${{ inputs.skip_kabi }}" = "true" ]; then
113+
# -u overrides the build container's default command (kernel_build.sh)
114+
BUILD_ARGS=(-u "/usr/local/bin/kernel_build.sh skipkabi")
115+
fi
106116
podman run --rm --pull=always \
107117
--privileged \
108118
--device=/dev/fuse \
@@ -114,7 +124,7 @@ jobs:
114124
-v "$PWD/kernel-container-build/container/check_kabi.sh":/usr/libexec/check_kabi.sh:ro \
115125
--security-opt label=disable \
116126
pulp.prod.ciq.dev/ciq/cicd/lts-images/builder \
117-
/usr/local/build-scripts/build_kernel.sh 2>&1 | tee output/kernel-build.log
127+
/usr/local/build-scripts/build_kernel.sh "${BUILD_ARGS[@]}" 2>&1 | tee output/kernel-build.log
118128
sudo dmesg
119129
120130
# Upload kernel compilation logs

0 commit comments

Comments
 (0)