1414
1515jobs :
1616 rust :
17- name : Rust ${{ matrix.rust }} on ${{ matrix.os }}
17+ name : Rust on ${{ matrix.os }} with CUDA ${{ matrix.cuda }}
1818 runs-on : ${{ matrix.os }}
1919 env :
2020 LLVM_LINK_STATIC : 1
@@ -24,22 +24,37 @@ jobs:
2424 include :
2525 - os : ubuntu-20.04
2626 target : x86_64-unknown-linux-gnu
27+ cuda : ' 11.2.2'
28+ linux-local-args : ["--toolkit"]
29+ - os : ubuntu-20.04
30+ target : x86_64-unknown-linux-gnu
31+ cuda : ' 12.8.1'
32+ inux-local-args : ["--toolkit", "--driver"]
33+ - os : windows-latest
34+ target : x86_64-pc-windows-msvc
35+ cuda : ' 11.2.2'
2736 - os : windows-latest
2837 target : x86_64-pc-windows-msvc
38+ cuda : ' 12.8.1'
39+
2940 steps :
3041 - name : Checkout repository
3142 uses : actions/checkout@v2
3243
33- - name : Install CUDA
34- 44+ - name : Install CUDA
45+ 3546 id : cuda-toolkit
3647 with :
37- cuda : ' 11.2.2'
48+ cuda : ${{ matrix.cuda }}
49+ linux-local-args : ${{ toJson(matrix.linux-local-args) }}
50+
51+ - name : Verify CUDA installation
52+ run : nvcc --version
3853
3954 - name : List CUDA_PATH files (Linux)
4055 if : runner.os == 'Linux'
4156 run : find "$CUDA_PATH" -type f
42-
57+
4358 - name : List CUDA_PATH files (Windows)
4459 if : runner.os == 'Windows'
4560 shell : pwsh
@@ -48,13 +63,13 @@ jobs:
4863 # random command that forces rustup to install stuff in rust-toolchain
4964 - name : Install rust-toolchain
5065 run : cargo version
51-
66+
5267 - name : Add rustup components
5368 run : rustup component add rustfmt clippy
5469
5570 - name : Install LLVM 7
5671 if : contains(matrix.os, 'ubuntu')
57- run : |
72+ run : |
5873 sudo apt-get install llvm-7
5974 sudo ln -s /usr/bin/llvm-config-7 /usr/local/bin/llvm-config
6075
0 commit comments