Skip to content

Commit 10ab3ac

Browse files
committed
Add CUDA to CI
1 parent d503e11 commit 10ab3ac

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212

13+
strategy:
14+
matrix:
15+
# Define the matrix for whether to install CUDA or not
16+
install_cuda: [true, false]
1317
steps:
1418
- uses: actions/checkout@v4
1519
- name: Set up Python
@@ -26,6 +30,11 @@ jobs:
2630
sudo apt-get update
2731
sudo apt-get install -y cmake build-essential libhdf5-dev libgsl-dev libfftw3-dev swig libnfft3-dev libtiff-dev libpng-dev
2832
pip install pytest setuptools
33+
34+
- name: Install NVIDIA CUDA Toolkit (if matrix.install_cuda is true)
35+
if: matrix.install_cuda == true
36+
run: |
37+
sudo apt-get install -y nvidia-cuda-toolkit
2938
3039
- name: Build
3140
run: |

0 commit comments

Comments
 (0)