-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (39 loc) · 1.12 KB
/
Copy pathci.yml
File metadata and controls
49 lines (39 loc) · 1.12 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: CI
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: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt, clippy
- name: Install LLVM/Clang
run: |
sudo apt-get update
sudo apt-get install -y clang-18 libclang-18-dev
sudo ln -sf /usr/lib/llvm-18/lib/libclang.so.1 /usr/lib/x86_64-linux-gnu/libclang.so || true
- name: Build
run: cargo build --workspace --verbose
env:
LIBCLANG_PATH: /usr/lib/llvm-18/lib
- name: Test
run: cargo test --workspace --verbose
env:
LIBCLANG_PATH: /usr/lib/llvm-18/lib
- name: Clippy (lint)
run: cargo clippy --workspace -- -D warnings
env:
LIBCLANG_PATH: /usr/lib/llvm-18/lib
- name: Format check
run: cargo fmt --all -- --check
- name: Build docs
run: cargo doc --workspace --no-deps --document-private-items