From 1e563cf70124b8fd379b8bf15f83ad33bb0808a8 Mon Sep 17 00:00:00 2001 From: shiva kumar Date: Tue, 3 Dec 2024 10:50:52 +0530 Subject: [PATCH] ubuntu24.04 precompile support Signed-off-by: shiva kumar --- .github/workflows/precompiled.yaml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/precompiled.yaml b/.github/workflows/precompiled.yaml index c2411911..c3c0e0b9 100644 --- a/.github/workflows/precompiled.yaml +++ b/.github/workflows/precompiled.yaml @@ -126,20 +126,25 @@ jobs: trap "docker rm -f base-${BASE_TARGET}-${{ matrix.flavor }}" EXIT docker run -d --name base-${BASE_TARGET}-${{ matrix.flavor }} ghcr.io/nvidia/driver:base-${BASE_TARGET}-${{ matrix.flavor }}-${{ matrix.driver_branch }} - # try 3 times every 10 seconds to get the file, if success exit the loop - for i in {1..3}; do - docker cp base-${BASE_TARGET}-${{ matrix.flavor }}:/var/kernel_version.txt kernel_version.txt && break - sleep 10 - done + + sleep 3 docker images echo "SHIVA 1111 $OUT_IMAGE" # SHIVA - echo "./tests/scripts/findkernelversion.sh $BASE_TARGET ${{ matrix.flavor }} ${{ matrix.driver_branch }} ${DIST}" - ./tests/scripts/findkernelversion.sh $BASE_TARGET ${{ matrix.flavor }} ${{ matrix.driver_branch }} ${{ matrix.dist }} + echo "$BASE_TARGET ${{ matrix.flavor }} ${{ matrix.driver_branch }} ${{ matrix.dist }}" + regctl -v debug image get-file ghcr.io/nvidia/driver:base-${BASE_TARGET}-${{ matrix.flavor }}-${{ matrix.driver_branch }} /var/kernel_version.txt ./kernel_version1.txt + cat ./kernel_version1.txt # SHIVA echo "SHIVA 2222222" + + + # try 3 times every 10 seconds to get the file, if success exit the loop + for i in {1..3}; do + docker cp base-${BASE_TARGET}-${{ matrix.flavor }}:/var/kernel_version.txt kernel_version.txt && break + sleep 10 + done - name: Build image env: IMAGE_NAME: ghcr.io/nvidia/driver