-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (37 loc) · 1.01 KB
/
ci.yaml
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
name: CI
on:
push:
branches: [ main ]
pull_request:
types: [opened, reopened]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: Install nextest
shell: bash
run: |
curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin
# - run: cargo fmt --all --check
- run: cargo check --workspace
- run: cargo clippy --all-features -- -D warnings
- run: cargo test --doc -- --show-output
- run: cargo nextest run
benchmarks:
name: Run benchmarks
runs-on: ubuntu-22.04
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install nightly toolchain
uses: dtolnay/rust-toolchain@nightly
- name: Run benchmarks
run: cargo +nightly bench
env:
RUSTFLAGS: --cfg=bench