name: Rust
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install Rust nightly
run: rustup install nightly
- uses: actions/checkout@v1
- name: Build
run: cargo +nightly build --verbose
- name: Run tests
run: cargo +nightly test --verbose
- name: Build examples
run: cd examples && cargo +nightly build --all --verbose