Skip to content

Commit 03fa9eb

Browse files
feat: add kernel / kmod version validation
1 parent fe6ac70 commit 03fa9eb

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/build.yml

+15-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,21 @@ jobs:
5858
BASE_IMAGE=$(yq '.base-image' ./recipes/${{ matrix.recipe }})
5959
echo "BASE_IMAGE_NAME=$(echo $BASE_IMAGE | sed 's/.*\/.*\///')" >> $GITHUB_ENV
6060
61-
61+
- name: Validate kernel and kmod versions
62+
uses: Wandalen/[email protected]
63+
with:
64+
attempt_limit: 3
65+
attempt_delay: 15000
66+
command: |
67+
set -eo pipefail
68+
linux=$(skopeo inspect docker://ghcr.io/ublue-os/main-kernel:40 | jq -r '.Labels["ostree.linux"]')
69+
AKMODS_KERNEL_VERSION=$(skopeo inspect docker://ghcr.io/ublue-os/akmods:main-40 | jq -r '.Labels["ostree.linux"]')
70+
if [[ "${linux}" != "${AKMODS_KERNEL_VERSION}" ]]; then
71+
echo "Kernel Versions do not match between AKMODS and Cached-Kernel."
72+
exit 1
73+
fi
74+
echo "KERNEL_VERSION=$linux" >> $GITHUB_ENV
75+
6276
- name: Build wayblue
6377
uses: blue-build/[email protected]
6478
with:

0 commit comments

Comments
 (0)