-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (36 loc) · 1.09 KB
/
ci.yml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Rust CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
container:
image: nvidia/cuda:12.4.0-devel-ubuntu22.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install dependencies
run: |
apt-get update
apt-get install -y curl wget
- name: Install libclang
run: apt-get install -y libclang-dev
- name: Install protobuf-compiler
run: apt-get install -y protobuf-compiler
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Set up Rust fmt version
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2024-02-04-x86_64-unknown-linux-gnu
- name: Install rustfmt
run: rustup component add --toolchain nightly-2024-02-04-x86_64-unknown-linux-gnu rustfmt
- name: Install dependencies
run: rustup target add x86_64-unknown-linux-gnu
- name: Run tests
run: bash ./dev_support/test.sh