You've already forked interchange
mirror of
https://github.com/trussed-dev/interchange.git
synced 2026-03-11 16:31:34 -07:00
35 lines
967 B
YAML
35 lines
967 B
YAML
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'
|