-
Notifications
You must be signed in to change notification settings - Fork 6
33 lines (31 loc) · 891 Bytes
/
ci.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
on:
push:
branches: ["main"]
name: CI
jobs:
test-and-doc:
name: Test & Doc
runs-on: ubuntu-latest
env:
RUSTFLAGS: -D warnings
RUSTDOCFLAGS: --cfg docsrs
steps:
- uses: actions/checkout@v4
- name: Install Rust nightly
uses: dtolnay/rust-toolchain@nightly
- name: Test with default features
run: cargo test
- name: Build with no features
run: cargo build --no-default-features
- name: Build with feature std
run: cargo build --no-default-features -F std
- name: Build with feature net
run: cargo build --no-default-features -F net
- name: Build doc
run: cargo doc
- name: Deploy doc
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./target/doc
publish_branch: doc