diff --git a/.github/workflows/cuda/cu102-Linux.sh b/.github/workflows/cuda/cu102-Linux.sh index ac38052..ada39d5 100644 --- a/.github/workflows/cuda/cu102-Linux.sh +++ b/.github/workflows/cuda/cu102-Linux.sh @@ -1,9 +1,7 @@ #!/bin/bash -echo $OS_VERSION - # Strip the periods from the version number -OS_VERSION=$(echo $OS_VERSION | tr -d .) +OS_VERSION=$(echo $(lsb_release -sr) | tr -d .) OS=ubuntu${OS_VERSION} wget -nv https://developer.download.nvidia.com/compute/cuda/repos/${OS}/x86_64/cuda-${OS}.pin diff --git a/.github/workflows/cuda/cu113-Linux.sh b/.github/workflows/cuda/cu113-Linux.sh index 0518a09..0b804d9 100644 --- a/.github/workflows/cuda/cu113-Linux.sh +++ b/.github/workflows/cuda/cu113-Linux.sh @@ -1,9 +1,7 @@ #!/bin/bash -echo $OS_VERSION - # Strip the periods from the version number -OS_VERSION=$(echo $OS_VERSION | tr -d .) +OS_VERSION=$(echo $(lsb_release -sr) | tr -d .) OS=ubuntu${OS_VERSION} wget -nv https://developer.download.nvidia.com/compute/cuda/repos/${OS}/x86_64/cuda-${OS}.pin diff --git a/.github/workflows/cuda/cu116-Linux.sh b/.github/workflows/cuda/cu116-Linux.sh index d717ab4..68e9ed4 100644 --- a/.github/workflows/cuda/cu116-Linux.sh +++ b/.github/workflows/cuda/cu116-Linux.sh @@ -1,9 +1,7 @@ #!/bin/bash -echo $OS_VERSION - # Strip the periods from the version number -OS_VERSION=$(echo $OS_VERSION | tr -d .) +OS_VERSION=$(echo $(lsb_release -sr) | tr -d .) OS=ubuntu${OS_VERSION} wget -nv https://developer.download.nvidia.com/compute/cuda/repos/${OS}/x86_64/cuda-${OS}.pin diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c394348..0fc0281 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -68,8 +68,6 @@ jobs: - name: Install CUDA ${{ matrix.cuda-version }} if: ${{ matrix.cuda-version != 'cpu' }} - env: - OS_VERSION: ${{ runner.release }} run: | bash .github/workflows/cuda/cu${{ matrix.cuda-version }}-${{ runner.os }}.sh shell: