Skip to content

Commit 69afd2a

Browse files
committed
ubuntu24.04 precompile support
Signed-off-by: shiva kumar <[email protected]>
1 parent 759e98c commit 69afd2a

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

tests/scripts/ci-precompiled-helpers.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@ get_kernel_versions_to_test() {
1111

1212
kernel_versions=()
1313
for kernel_flavor in "${KERNEL_FLAVORS[@]}"; do
14-
# TODO remove this check once nvidia avaialble
15-
# currently for ubuntu24.04 flavor = nvidia-lowlatency
16-
if [[ "$DIST" == "ubuntu24.04" && "$kernel_flavor" == "nvidia" ]]; then
17-
kernel_flavor="nvidia-lowlatency"
18-
fi
1914
for DRIVER_BRANCH in "${DRIVER_BRANCHES[@]}"; do
2015
source ./tests/scripts/findkernelversion.sh "$BASE_TARGET" "${kernel_flavor}" "$DRIVER_BRANCH" "$DIST" >&2
2116
if [[ "$should_continue" == true ]]; then

tests/scripts/findkernelversion.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,13 @@ else
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}"
2930
artifacts=$(gh api -X GET /repos/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}/artifacts --jq '.artifacts[].name')
3031
# Use a loop or a pattern to find the matching artifact dynamically
3132
for artifact in $artifacts; do
32-
if [[ $artifact == $prefix*-$suffix ]]; then
33+
# TODO remove this check once nvidia avaialble
34+
# currently for ubuntu24.04 kernel_flavor = nvidia-lowlatency
35+
if [[ $artifact == $prefix*-$suffix || $artifact == $prefix*-$suffixlowlatency ]]; then
3336
gh run download --name "$artifact" --dir ./
3437
tar -xf $artifact.tar
3538
rm -f $artifact.tar

0 commit comments

Comments
 (0)