-
Notifications
You must be signed in to change notification settings - Fork 89
56 lines (47 loc) · 1.72 KB
/
build.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
name: Build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust:
- nightly
- beta
- stable
- 1.56.0 # MSRV
features:
- ""
- --no-default-features --features alloc
- --features clippy
env:
RUST_BACKTRACE: 1
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- name: core crate
run: |
cd derive_builder_core
cargo build ${{ matrix.features }} --verbose
cargo test --no-fail-fast ${{ matrix.features }} --verbose -- --nocapture
cargo doc
- name: macro crate
run: |
cd derive_builder_macro
cargo build ${{ matrix.features }} --verbose
cargo test --no-fail-fast ${{ matrix.features }} --verbose -- --nocapture
cargo doc
- name: main crate
run: |
cd derive_builder
cargo build ${{ matrix.features }} --verbose
cargo test --no-fail-fast ${{ matrix.features }} --verbose -- --nocapture
cargo doc
- name: no_std tests crate
run: |
cd derive_builder_no_std_tests
cargo build ${{ matrix.features }} --verbose
cargo test --no-fail-fast ${{ matrix.features }} --verbose -- --nocapture