-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (57 loc) · 1.99 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: CI
env:
TYPOS_LINK: "https://github.com/crate-ci/typos/releases/download"
TYPOS_VERSION: "1.23.4"
CUBECL_ROCM_PATH: "/opt/rocm"
ROCM_VERSION_FEATURE: "rocm_622"
on:
push:
branches:
- main
pull_request: {}
jobs:
checks:
runs-on: ubuntu-24.04
steps:
- name: Setup Rust
uses: tracel-ai/github-actions/setup-rust@v1
with:
rust-toolchain: stable
cache-key: stable-linux
# --------------------------------------------------------------------------------
- name: Audit
run: cargo xtask check audit
# --------------------------------------------------------------------------------
- name: Format
shell: bash
env:
# work around for colors
# see: https://github.com/rust-lang/rustfmt/issues/3385
TERM: xterm-256color
run: cargo xtask check format
# --------------------------------------------------------------------------------
- name: Typos
uses: tracel-ai/github-actions/check-typos@v1
tests:
runs-on: amd-rx7600
steps:
- name: Setup Rust
uses: tracel-ai/github-actions/setup-rust@v1
with:
rust-toolchain: stable
cache-key: stable-linux
# --------------------------------------------------------------------------------
- name: Lint
run: cargo xtask check lint
# --------------------------------------------------------------------------------
- name: Unit Tests
shell: bash
run: cargo xtask test --features ${{ env.ROCM_VERSION_FEATURE }} unit
# --------------------------------------------------------------------------------
- name: Integration Tests
shell: bash
run: cargo xtask test --features ${{ env.ROCM_VERSION_FEATURE }} integration
# --------------------------------------------------------------------------------
- name: Documentation Tests
shell: bash
run: cargo xtask doc tests