Remove commented-out states #37
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |