-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (53 loc) · 1.48 KB
/
fieldx.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: CI
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
jobs:
with_features:
runs-on: ${{ matrix.os }}-latest
timeout-minutes: 30
strategy:
matrix:
os: [ubuntu, macos, windows]
toolchain:
- 1.77
- stable
- beta
- nightly
feature: [serde, send_guard]
exclude:
- os: windows
toolchain: nightly
steps:
- uses: actions/checkout@v4
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo build --verbose --all --features ${{ matrix.feature }}
- run: cargo test --verbose --all --features ${{ matrix.feature }}
if: matrix.toolchain == 'nightly'
- run: cargo test --verbose --all --features serde,send_guard
if: matrix.toolchain == 'nightly'
no_features:
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
os: [ubuntu, macos, windows]
toolchain:
- 1.77
- stable
- beta
- nightly
steps:
- uses: actions/checkout@v4
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo build --verbose --all
- run: cargo test --verbose --all
build_docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup default nightly
- run: cargo install cargo-docs-rs
- run: cargo docs-rs -p fieldx