Skip to content

Commit 6a8b231

Browse files
committed
Add CUDA 12 to CI
Not sure this is worth the extra time and CPU cycles, we'll see.
1 parent 42afe4b commit 6a8b231

File tree

1 file changed

+24
-7
lines changed

1 file changed

+24
-7
lines changed

.github/workflows/rust.yml

+24-7
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ env:
1414

1515
jobs:
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,39 @@ 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-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: []
2737
- os: windows-latest
2838
target: x86_64-pc-windows-msvc
39+
cuda: '12.8.1'
40+
linux-local-args: []
41+
2942
steps:
3043
- name: Checkout repository
3144
uses: actions/checkout@v2
3245

33-
- name: Install CUDA
34-
uses: Jimver/[email protected].21
46+
- name: Install CUDA
47+
uses: Jimver/[email protected].22
3548
id: cuda-toolkit
3649
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
3855

3956
- name: List CUDA_PATH files (Linux)
4057
if: runner.os == 'Linux'
4158
run: find "$CUDA_PATH" -type f
42-
59+
4360
- name: List CUDA_PATH files (Windows)
4461
if: runner.os == 'Windows'
4562
shell: pwsh
@@ -48,13 +65,13 @@ jobs:
4865
# random command that forces rustup to install stuff in rust-toolchain
4966
- name: Install rust-toolchain
5067
run: cargo version
51-
68+
5269
- name: Add rustup components
5370
run: rustup component add rustfmt clippy
5471

5572
- name: Install LLVM 7
5673
if: contains(matrix.os, 'ubuntu')
57-
run: |
74+
run: |
5875
sudo apt-get install llvm-7
5976
sudo ln -s /usr/bin/llvm-config-7 /usr/local/bin/llvm-config
6077

0 commit comments

Comments
 (0)