-
Notifications
You must be signed in to change notification settings - Fork 30
89 lines (84 loc) · 2.26 KB
/
actions.yml
File metadata and controls
89 lines (84 loc) · 2.26 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: Cargo
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
name: MSRV
strategy:
matrix:
os: ['ubuntu-latest', 'macos-latest']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v5
- uses: dtolnay/rust-toolchain@1.79.0
with:
components: rustfmt, clippy
- name: Cache cargo registry
uses: actions/cache@v4
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
- name: Build
run: cargo build --verbose
env:
RUSTFLAGS: -D warnings
- name: Clippy
run: cargo clippy --all --tests
env:
RUSTFLAGS: -D warnings
- name: Test
run: cargo test --all --verbose
- name: Formatting
run: cargo fmt --all -- --check
- name: Docs
run: cargo doc --workspace --no-deps
env:
RUSTFLAGS: -D warnings
build-serde:
name: Serde Build
strategy:
matrix:
os: ['ubuntu-latest', 'macos-latest']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v5
- uses: dtolnay/rust-toolchain@1.81.0
- name: Build
run: cargo build --verbose --features serialize
env:
RUSTFLAGS: -D warnings
- name: Test
run: cargo test --all --verbose --features serialize,arbitrary
build-bincode:
name: Bincode Build
strategy:
matrix:
os: ['ubuntu-latest', 'macos-latest']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v5
- uses: dtolnay/rust-toolchain@1.85.1
- name: Build
run: cargo build --verbose --features serialize
env:
RUSTFLAGS: -D warnings
- name: Test
run: cargo test --all --verbose --features bincode,arbitrary
no-std:
name: no-std
strategy:
matrix:
os: ['ubuntu-latest', 'macos-latest']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v5
- uses: dtolnay/rust-toolchain@1.79.0
- name: Build
run: cargo build --verbose --no-default-features
env:
RUSTFLAGS: -D warnings
- name: Test
run: cargo test --all --verbose --no-default-features