-
Notifications
You must be signed in to change notification settings - Fork 5
34 lines (31 loc) · 967 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
34
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions-rs/toolchain@v1
name: Install Rust
with:
profile: minimal
toolchain: stable
override: true
- name: Build
run: RUSTFLAGS="-D warnings" cargo build --verbose --all-targets --all-features
- name: Run tests
run: make test
- name: Build Documentation
run: RUSTDOCFLAGS="-D warnings" cargo doc --no-deps
- name: Run rustfmt
run: cargo fmt -- --check
- name: Run clippy
run: |
cargo clippy --all-targets --all-features -- --deny warnings
RUSTFLAGS='--cfg loom' cargo clippy --all-targets --all-features -- --deny warnings
- name: Deploy Docs
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./target/doc
if: github.ref == 'refs/heads/main'