-
Notifications
You must be signed in to change notification settings - Fork 5
46 lines (41 loc) · 1.06 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
name: CI
on:
pull_request:
push:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: --deny warnings
jobs:
style:
name: Check basic style
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: LukasKalbertodt/check-basic-style@v0.1
with:
files: |
**/*.{toml,rs}
check:
name: 'Build, test & document'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Restore cache
uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build --all --lib --bins
- name: Build Examples
run: cargo build --examples
- name: Build Benchmarks
run: cargo build --benches
- name: Run tests (default features)
run: cargo test --all
- name: Run tests ('large-handle' feature)
run: cargo test --all --features="large-handle"
- name: Run tests (no default features)
run: |
cargo test --lib --no-default-features
cargo test --doc --no-default-features
- name: Generate documenation
run: cargo doc --no-deps