From de81c6d25f1ef44c8c8bc725e2dfe115748de78c Mon Sep 17 00:00:00 2001 From: Mikael Dallaire Cote <110583667+0mdc@users.noreply.github.com> Date: Mon, 18 Nov 2024 13:04:43 -0500 Subject: [PATCH] Fix typo --- .github/actions/install_ubuntu_gpu_deps/action.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/actions/install_ubuntu_gpu_deps/action.yml b/.github/actions/install_ubuntu_gpu_deps/action.yml index 2879fe9abd..3f780ff40c 100644 --- a/.github/actions/install_ubuntu_gpu_deps/action.yml +++ b/.github/actions/install_ubuntu_gpu_deps/action.yml @@ -8,9 +8,9 @@ runs: shell: bash run: | NVIDIA_SMI_OUTPUT=$(nvidia-smi) - DRIVER_VERSION=$(echo "$NVIDIA_SMI_OUTPUT" | grep -oP 'Driver Version:\s+\K[\d.]+') - MAJOR_VERSION=$(echo "$NVIDIA_SMI_OUTPUT" | grep -oP 'Driver Version:\s+\K\d+') - UBUNTU_PACKAGE_SUFFIX="${MAJOR_VERSION}=${DRIVER_VERSION}-0ubuntu1" + FULL_DRIVER_VERSION=$(echo "$NVIDIA_SMI_OUTPUT" | grep -oP 'Driver Version:\s+\K[\d.]+') + MAJOR_DRIVER_VERSION=$(echo "$NVIDIA_SMI_OUTPUT" | grep -oP 'Driver Version:\s+\K\d+') + UBUNTU_PACKAGE_SUFFIX="${MAJOR_DRIVER_VERSION}=${FULL_DRIVER_VERSION}-0ubuntu1" sudo apt-get update - sudo apt-get install -y libnvidia-common-${DRIVER_VERSION} - sudo apt-get install -y libnvidia-gl-${DRIVER_VERSION} + sudo apt-get install -y libnvidia-common-${UBUNTU_PACKAGE_SUFFIX} + sudo apt-get install -y libnvidia-gl-${UBUNTU_PACKAGE_SUFFIX}