-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (31 loc) · 1.2 KB
/
rust.yml
File metadata and controls
34 lines (31 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Retrieve CUDA keyring
run: wget https://developer.download.nvidia.com/compute/cuda/repos/debian11/x86_64/cuda-keyring_1.0-1_all.deb
- name: Install CUDA Keyring
run: sudo dpkg -i cuda-keyring_1.0-1_all.deb
- name: Download CUDA (11.8)
run: |
wget https://developer.download.nvidia.com/compute/cuda/repos/debian11/x86_64/cuda-toolkit-config-common_11.8.89-1_all.deb
wget https://developer.download.nvidia.com/compute/cuda/repos/debian11/x86_64/cuda-cudart-11-8_11.8.89-1_amd64.deb
wget https://developer.download.nvidia.com/compute/cuda/repos/debian11/x86_64/cuda-cudart-dev-11-8_11.8.89-1_amd64.deb
wget https://developer.download.nvidia.com/compute/cuda/repos/debian11/x86_64/cuda-driver-dev-11-8_11.8.89-1_amd64.deb
- name: Install CUDA (11.8)
run: sudo dpkg -i --force-depends *.deb
- name: Lint
run: cargo clippy --verbose
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose