File tree Expand file tree Collapse file tree 4 files changed +7
-3
lines changed Expand file tree Collapse file tree 4 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -128,6 +128,7 @@ jobs:
128128 docker cp base-${BASE_TARGET}-${{ matrix.flavor }}:/var/kernel_version.txt kernel_version.txt && break
129129 sleep 10
130130 done
131+ echo "SHIVA 1111 $OUT_IMAGE"
131132 - name : Build image
132133 env :
133134 IMAGE_NAME : ghcr.io/nvidia/driver
@@ -137,6 +138,7 @@ jobs:
137138 run : |
138139 source kernel_version.txt && \
139140 make DRIVER_VERSIONS=${DRIVER_VERSIONS} DRIVER_BRANCH=${{ matrix.driver_branch }} build-${DIST}-${DRIVER_VERSION}
141+ echo "SHIVA 2222 $OUT_IMAGE"
140142
141143 - name : Save build image and kernel version file
142144 env :
Original file line number Diff line number Diff line change @@ -221,3 +221,5 @@ $(BASE_PUSH_TARGETS):
221221 regctl \
222222 image copy \
223223 $(IMAGE ) $(OUT_IMAGE )
224+
225+ export OUT_IMAGE =$(OUT_IMAGE )
Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ export DEBIAN_FRONTEND=noninteractive
1616apt-get update -y -qq > /dev/null
1717
1818# Generate a list of all kernel versions which have NVIDIA precompiled driver packages available.
19- SUPPORTED_KERNELS=$( apt-cache search linux-objects-nvidia-${DRIVER_BRANCH} -server.* ${LTS_KERNEL} .* ${KERNEL_FLAVOR} | awk ' {print $1}' | grep -v " open" | sed -e " s/^.*${LTS_KERNEL} /${LTS_KERNEL} /" | sort -n -t' -' -k2)
19+ DIST=" ubuntu-$( lsb_release -sr) "
20+ SUPPORTED_KERNELS=$( apt-cache search linux-objects-nvidia-${DRIVER_BRANCH} -server.* ${LTS_KERNEL} | grep " ${KERNEL_FLAVOR} -${DIST} " | awk ' {print $1}' | grep -v " open" | sed -e " s/^.*${LTS_KERNEL} /${LTS_KERNEL} /" | sort -n -t' -' -k2)
2021
2122# Grab latest driver version for nvidia-utils-${DRIVER_BRANCH}-server
2223DRIVER_VERSION=$( apt-cache show nvidia-utils-${DRIVER_BRANCH} -server | grep Version | awk ' {print $2}' | cut -d' -' -f1 | head -n 1)
Original file line number Diff line number Diff line change 2626 # Define variables for artifact pattern
2727 prefix=" kernel-version-${DRIVER_BRANCH} -${LTS_KERNEL} "
2828 suffix=" ${kernel_flavor} -${DIST} "
29- suffixlowlatency=" ${kernel_flavor} -lowlatency-${DIST} "
3029 artifacts=$( gh api -X GET /repos/${GITHUB_REPOSITORY} /actions/runs/${GITHUB_RUN_ID} /artifacts --jq ' .artifacts[].name' )
3130 # Use a loop or a pattern to find the matching artifact dynamically
3231 for artifact in $artifacts ; do
3332 # TODO remove this check once nvidia avaialble
3433 # currently for ubuntu24.04 kernel_flavor = nvidia-lowlatency
35- if [[ $artifact == $prefix * -$suffix || $artifact == $prefix * - $suffixlowlatency ]]; then
34+ if [[ $artifact == $prefix * -$suffix ]]; then
3635 gh run download --name " $artifact " --dir ./
3736 tar -xf $artifact .tar
3837 rm -f $artifact .tar
You can’t perform that action at this time.
0 commit comments