-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (37 loc) · 948 Bytes
/
check.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
name: Check
on:
push:
branches: [ "main" ]
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
show-progress: false
- name: Install Miri
run: |
rustup toolchain install nightly --profile minimal -c miri,rust-src
cargo +nightly miri setup
- name: Check formatting
run: cargo fmt --check
- name: Run Clippy
run: cargo clippy --all-features
- name: Run tests
run: cargo test --all-features
- name: Run tests with Miri
run: cargo +nightly miri test --all-features
check-specific-features:
runs-on: ubuntu-latest
strategy:
matrix:
features: ["", "alloc derive"]
steps:
- uses: actions/checkout@v4
- name: Run Clippy
run: cargo clippy -F "${{ matrix.features }}"
- name: Run tests
run: cargo test -F "${{ matrix.features }}"