-
Notifications
You must be signed in to change notification settings - Fork 3
107 lines (83 loc) · 2.66 KB
/
rust.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
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
name: Rust
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
check:
name: Test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os:
- ubuntu-latest
- windows-latest
steps:
- name: Checkout sources
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
- name: Install Rust toolchain
run: rustup default nightly
- name: Install cargo-hack
run: cargo install cargo-hack
- name: Powerset
run: cargo hack test --feature-powerset
- name: Minimal versions
run: cargo hack test --feature-powerset -Z minimal-versions
embedded:
name: Build (embedded)
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
- name: Install Rust toolchain
run: |
rustup default nightly
rustup target add thumbv6m-none-eabi
- name: Install cargo-hack
run: cargo install cargo-hack
- name: Powerset
run: cargo hack check --each-feature --exclude-features std,test,error,owned -Z avoid-dev-deps --target thumbv6m-none-eabi
nodeps:
name: Build (no dev deps)
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
- name: Install Rust toolchain
run: rustup default nightly
- name: Install cargo-hack
run: cargo install cargo-hack
- name: Powerset
run: cargo hack check --feature-powerset -Z avoid-dev-deps
benches:
name: Build (benches)
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
- name: Install Rust toolchain
run: rustup default nightly
- name: Benches
run: cargo bench --no-run --features "error sval2 serde1"
wasm:
name: Test (wasm)
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
- name: Install
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: All features
run: wasm-pack test --node -- --all-features
miri:
name: Test (miri)
runs-on: ubuntu-latest
env:
MIRI_TOOLCHAIN: nightly-2023-03-26
steps:
- name: Checkout sources
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
- name: Install miri
run: rustup +$MIRI_TOOLCHAIN component add miri
- name: Default features
run: cargo +$MIRI_TOOLCHAIN miri test