14
14
15
15
jobs :
16
16
rust :
17
- name : Rust ${{ matrix.rust }} on ${{ matrix.os }}
17
+ name : Rust on ${{ matrix.os }} with CUDA ${{ matrix.cuda }}
18
18
runs-on : ${{ matrix.os }}
19
19
env :
20
20
LLVM_LINK_STATIC : 1
@@ -24,22 +24,39 @@ jobs:
24
24
include :
25
25
- os : ubuntu-20.04
26
26
target : x86_64-unknown-linux-gnu
27
+ cuda : ' 11.2.2'
28
+ linux-local-args : ["--toolkit"]
29
+ - os : ubuntu-24.04
30
+ target : x86_64-unknown-linux-gnu
31
+ cuda : ' 12.8.1'
32
+ linux-local-args : ["--toolkit"]
33
+ - os : windows-latest
34
+ target : x86_64-pc-windows-msvc
35
+ cuda : ' 11.2.2'
36
+ linux-local-args : []
27
37
- os : windows-latest
28
38
target : x86_64-pc-windows-msvc
39
+ cuda : ' 12.8.1'
40
+ linux-local-args : []
41
+
29
42
steps :
30
43
- name : Checkout repository
31
44
uses : actions/checkout@v2
32
45
33
- - name : Install CUDA
34
-
46
+ - name : Install CUDA
47
+
35
48
id : cuda-toolkit
36
49
with :
37
- cuda : ' 11.2.2'
50
+ cuda : ${{ matrix.cuda }}
51
+ linux-local-args : ${{ toJson(matrix.linux-local-args) }}
52
+
53
+ - name : Verify CUDA installation
54
+ run : nvcc --version
38
55
39
56
- name : List CUDA_PATH files (Linux)
40
57
if : runner.os == 'Linux'
41
58
run : find "$CUDA_PATH" -type f
42
-
59
+
43
60
- name : List CUDA_PATH files (Windows)
44
61
if : runner.os == 'Windows'
45
62
shell : pwsh
@@ -48,13 +65,13 @@ jobs:
48
65
# random command that forces rustup to install stuff in rust-toolchain
49
66
- name : Install rust-toolchain
50
67
run : cargo version
51
-
68
+
52
69
- name : Add rustup components
53
70
run : rustup component add rustfmt clippy
54
71
55
72
- name : Install LLVM 7
56
73
if : contains(matrix.os, 'ubuntu')
57
- run : |
74
+ run : |
58
75
sudo apt-get install llvm-7
59
76
sudo ln -s /usr/bin/llvm-config-7 /usr/local/bin/llvm-config
60
77
0 commit comments