-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (48 loc) · 1.23 KB
/
build-and-test.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
name: Build and test
on: [] #[push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
rust: [stable, nightly, 1.46.0]
steps:
- uses: actions/checkout@v2
- name: Install Rust ${{ matrix.rust }}
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
profile: minimal
- name: Build with no_std
uses: actions-rs/cargo@v1
with:
command: build
args: --no-default-features
- name: Build default
uses: actions-rs/cargo@v1
with:
command: build
- name: Run tests with no_std
uses: actions-rs/cargo@v1
with:
command: test
args: --no-default-features
- name: Run tests with no_std in release mode
uses: actions-rs/cargo@v1
with:
command: test
args: --no-default-features --release
- name: Run tests default
uses: actions-rs/cargo@v1
with:
command: test
- name: Run tests default in release mode
uses: actions-rs/cargo@v1
with:
command: test
args: --release