-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (49 loc) · 1.19 KB
/
push.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
51
52
53
54
name: Push
on:
push:
defaults:
run:
shell: bash
jobs:
build:
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
rust: [stable, 1.79]
runner: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ matrix.rust }}
components: clippy
- name: Cache
uses: Swatinem/rust-cache@v2
with:
key: ${{ matrix.rust }}-${{ matrix.runner }}
- run: uname -a
- run: cargo install --locked cargo-criterion
if: matrix.rust == 'stable'
- run: cargo fmt -- --check
if: matrix.rust == 'stable'
- run: cargo clippy -- --deny warnings
if: matrix.rust == 'stable'
- run: cargo test --release
- run: cargo criterion
if: matrix.rust == 'stable'
miri:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly
components: miri
- name: Cache
uses: Swatinem/rust-cache@v2
with:
key: miri
- run: cargo miri test