name: Build
on:
push:
branches:
pull_request:
branches:
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Change Rust to nightly
run: rustup default nightly
- name: Rustup update
run: rustup update
- name: Build
run: cargo +nightly build --verbose --all-features
- name: Run tests
run: cargo +nightly test --verbose --all-features
- name: Run doc generation
run: cargo +nightly doc --verbose --all-features