From bb08cae6a156501e8430b6c443bb822bbdd7153d Mon Sep 17 00:00:00 2001 From: shiva kumar Date: Tue, 3 Dec 2024 10:20:14 +0530 Subject: [PATCH] ubuntu24.04 precompile support Signed-off-by: shiva kumar --- .github/workflows/precompiled.yaml | 6 +++++- tests/scripts/findkernelversion.sh | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/precompiled.yaml b/.github/workflows/precompiled.yaml index d12bc283..d20c80ef 100644 --- a/.github/workflows/precompiled.yaml +++ b/.github/workflows/precompiled.yaml @@ -130,7 +130,6 @@ jobs: sleep 10 done docker images - docker manifest inspect ghcr.io/nvidia/driver:base echo "SHIVA 1111 $OUT_IMAGE" echo "SHIVA 2222222" - name: Build image @@ -200,6 +199,11 @@ jobs: VAR_NAME_LTS_KERNEL=$(echo lts_kernel_${DIST} | sed 's/\./_/g') echo "VAR_NAME_LTS_KERNEL=${VAR_NAME_LTS_KERNEL}" >> $GITHUB_ENV + # SHIVA + ./tests/scripts/findkernelversion.sh "$VAR_NAME_BASE_TARGET" nvidia 550 ${DIST} + exit 1 + # SHIVA + - name: Set kernel version env: DIST: ${{ matrix.dist }} diff --git a/tests/scripts/findkernelversion.sh b/tests/scripts/findkernelversion.sh index d322da44..ee3405d9 100755 --- a/tests/scripts/findkernelversion.sh +++ b/tests/scripts/findkernelversion.sh @@ -17,7 +17,7 @@ chmod a+x bin/regctl export PATH=$(pwd)/bin:${PATH} # calculate kernel version of latest image -regctl image get-file ghcr.io/nvidia/driver:base-${BASE_TARGET}-${KERNEL_FLAVOR}-${DRIVER_BRANCH} /var/kernel_version.txt ./kernel_version.txt 2>/dev/null || true +regctl -v debug image get-file ghcr.io/nvidia/driver:base-${BASE_TARGET}-${KERNEL_FLAVOR}-${DRIVER_BRANCH} /var/kernel_version.txt ./kernel_version.txt 2>/dev/null || true if [[ -f ./kernel_version.txt && -s ./kernel_version.txt ]]; then # File exists and is not empty export $(grep -oP 'KERNEL_VERSION=[^ ]+' ./kernel_version.txt)