This repository was archived by the owner on Aug 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 103
57 lines (45 loc) · 1.46 KB
/
ci.yml
File metadata and controls
57 lines (45 loc) · 1.46 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
---
name: CI
"on":
pull_request:
types: [opened, synchronize, reopened]
push:
branches: [main]
jobs:
build_and_test:
strategy:
fail-fast: false
matrix:
version:
- { name: msrv, version: '1.81' }
- { name: stable, version: stable }
- { name: nightly, version: nightly }
name: ${{ matrix.version.name }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1.15.3
with:
toolchain: ${{ matrix.version.version }}
- name: cargo check
run: cargo check --workspace --bins --examples --tests
- name: cargo test
run: |
cargo test --workspace --all-features --no-fail-fast -- --nocapture
cargo build --features=unsealed_read_write
cargo build --no-default-features --features=unsealed_read_write
build_and_test_no_std:
name: stable (no_std)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1.15.3
- name: Add no_std target
run: rustup target add thumbv7em-none-eabihf
- name: cargo test
run: |
cargo build --target thumbv7em-none-eabihf --no-default-features --features=alloc
cargo test --no-default-features --lib --tests
cargo build --no-default-features --features=alloc