name: CI
on:
push:
pull_request:
jobs:
doc:
name: doc
runs-on: ubuntu-latest
env:
RUSTDOCFLAGS: "-D warnings"
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: doc
args: --no-deps
test:
name: test
runs-on: ubuntu-latest
strategy:
matrix:
feats: ["", "--no-default-features"]
opt: ["", "--release"]
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: test
args: --lib ${{ matrix.feats }} ${{ matrix.opt }}