-
Notifications
You must be signed in to change notification settings - Fork 36
40 lines (33 loc) · 1.21 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
on: [push, pull_request]
name: CI
jobs:
tests:
name: Check
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
- name: Install cargo-hack
uses: taiki-e/install-action@v2
with:
tool: cargo-hack
- run: cargo hack check --feature-powerset --exclude-features rustc-dep-of-std
- run: cargo hack clippy --feature-powerset --exclude-features rustc-dep-of-std
- run: cargo hack test --feature-powerset --exclude-features rustc-dep-of-std
nightly-stuff:
name: nightly clippy, format and miri tests
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install nightly toolchain
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt, clippy, miri
- run: cargo +nightly fmt --all -- --check
- run: cargo +nightly clippy --no-default-features -- -D warnings
- run: cargo +nightly clippy -- -D warnings
- run: cargo +nightly miri test ringbuffer
- run: cargo +nightly miri test short_Writer