-
Notifications
You must be signed in to change notification settings - Fork 114
60 lines (48 loc) · 1.31 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
name: Rust
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
permissions:
contents: read
jobs:
check:
name: "Tests"
runs-on: ubuntu-latest
strategy:
matrix:
channel:
- stable
- beta
- nightly
steps:
- name: Checkout repository
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
- name: Install Rust Toolchain
run: rustup default ${{ matrix.channel }}
- name: Install cargo-hack
run: cargo install cargo-hack
- name: Powerset
run: cargo hack test --feature-powerset --lib
miri:
name: "Miri"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Miri
run: |
rustup toolchain install nightly --component miri
cargo +nightly miri setup
- name: Default features
run: cargo +nightly miri test
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 thumbv7em-none-eabi
- name: Default features
run: cargo build -Z avoid-dev-deps --features spin_no_std --target thumbv7em-none-eabi