Skip to content

Commit 61959ce

Browse files
committed
CI Linux: install just the cuda-compiler
1 parent 3ce89c8 commit 61959ce

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/ccpp.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ jobs:
6767
${{ matrix.cuda_repo }}/x86_64/cuda-keyring_1.1-1_all.deb
6868
sudo dpkg -i cuda-keyring_1.1-1_all.deb
6969
sudo apt-get update
70-
sudo apt-get -y install ${{ matrix.cuda_pkg }}
70+
cuda_compiler_pkg=$(yes n | apt-get install ${{ matrix.cuda_pkg }} | grep\
71+
cuda-compiler | head -n 1 | sed 's/.*\(cuda-compiler[-0-9]*\).*/\1/')
72+
sudo apt-get -y install "$cuda_compiler_pkg"
7173
echo CUDACXX=/usr/local/cuda/bin/nvcc >> "$GITHUB_ENV"
7274
- name: Install GCC 8 for CUDA 10.2
7375
if: matrix.conf == 'legacy'

0 commit comments

Comments
 (0)