Skip to content

Commit 9e1b479

Browse files
committed
Actions: Attempt #12, try local install method
1 parent 7c9b9fb commit 9e1b479

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

.github/workflows/build.yml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -142,29 +142,29 @@ jobs:
142142
143143
# Attempt to pin nvidia-persistenced to exactly 575.57.08-0ubuntu1 until dependency issue is fixed in CUDA
144144
# https://forums.developer.nvidia.com/t/nvidia-driver-570-installation-is-broken-again/335219
145-
- name: Enable NVIDIA CUDA APT repo
146-
if: runner.os == 'Linux'
147-
shell: bash
148-
run: |
149-
set -euo pipefail
150-
UBUNTU=$(lsb_release -rs | tr -d '.')
151-
DIST="ubuntu${UBUNTU}"
152-
ARCH="x86_64"
153-
sudo mkdir -p /usr/share/keyrings
154-
curl -fsSL \
155-
https://developer.download.nvidia.com/compute/cuda/repos/${DIST}/${ARCH}/cuda-archive-keyring.gpg |
156-
sudo tee /usr/share/keyrings/cuda-archive-keyring.gpg >/dev/null
157-
echo "deb [signed-by=/usr/share/keyrings/cuda-archive-keyring.gpg] \
158-
https://developer.download.nvidia.com/compute/cuda/repos/${DIST}/${ARCH}/ /" |
159-
sudo tee /etc/apt/sources.list.d/cuda.list
160-
sudo apt-get update -y
161-
162-
- name: Pin nvidia-persistenced 575.57.08-0ubuntu1
163-
if: runner.os != 'Windows' && matrix.cuda != ''
164-
run: |
165-
sudo apt-get update
166-
sudo apt-get install -y --allow-downgrades nvidia-persistenced=575.57.08-0ubuntu1 libnvidia-cfg1=575.57.08-0ubuntu1
167-
sudo apt-mark hold nvidia-persistenced libnvidia-cfg1
145+
# - name: Enable NVIDIA CUDA APT repo
146+
# if: runner.os == 'Linux'
147+
# shell: bash
148+
# run: |
149+
# set -euo pipefail
150+
# UBUNTU=$(lsb_release -rs | tr -d '.')
151+
# DIST="ubuntu${UBUNTU}"
152+
# ARCH="x86_64"
153+
# sudo mkdir -p /usr/share/keyrings
154+
# curl -fsSL \
155+
# https://developer.download.nvidia.com/compute/cuda/repos/${DIST}/${ARCH}/cuda-archive-keyring.gpg |
156+
# sudo tee /usr/share/keyrings/cuda-archive-keyring.gpg >/dev/null
157+
# echo "deb [signed-by=/usr/share/keyrings/cuda-archive-keyring.gpg] \
158+
# https://developer.download.nvidia.com/compute/cuda/repos/${DIST}/${ARCH}/ /" |
159+
# sudo tee /etc/apt/sources.list.d/cuda.list
160+
# sudo apt-get update -y
161+
#
162+
# - name: Pin nvidia-persistenced 575.57.08-0ubuntu1
163+
# if: runner.os != 'Windows' && matrix.cuda != ''
164+
# run: |
165+
# sudo apt-get update
166+
# sudo apt-get install -y --allow-downgrades nvidia-persistenced=575.57.08-0ubuntu1 libnvidia-cfg1=575.57.08-0ubuntu1
167+
# sudo apt-mark hold nvidia-persistenced libnvidia-cfg1
168168

169169
# TODO: Find specific sub-packages
170170
- name: Install Linux CUDA ${{ matrix.cuda }}
@@ -173,7 +173,7 @@ jobs:
173173
with:
174174
cuda: "${{ matrix.cuda }}"
175175
linux-local-args: '["--toolkit"]'
176-
method: "network"
176+
method: "local"
177177
if: runner.os != 'Windows' && matrix.cuda != ''
178178

179179
- name: Install CUDA build Dependencies

0 commit comments

Comments
 (0)