-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (45 loc) · 1.19 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
name: CI
on: [push, pull_request]
env:
RUSTFLAGS: -Dwarnings
jobs:
test:
name: Tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
timeout-minutes: 20
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
with:
components: clippy, miri
- uses: taiki-e/install-action@cargo-hack
- run: cargo hack check --each-feature
- run: cargo hack test --each-feature
- run: cargo hack clippy --each-feature
- run: cargo hack miri test --each-feature
fmt:
name: Formatting
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- run: cargo fmt --check
examples:
name: Examples
runs-on: ubuntu-latest
strategy:
fail-fast: false
timeout-minutes: 20
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
with:
components: miri
- uses: taiki-e/install-action@cargo-hack
- run: cargo hack run --example basic --each-feature
- run: cargo hack miri run --example basic --each-feature