name: build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
RUST_BACKTRACE: full
jobs:
build:
strategy:
matrix:
os: [ubuntu-18.04, ubuntu-20.04, windows-2019, macos-11.0]
toolchain: [stable, nightly]
fail-fast: false
continue-on-error: ${{ matrix.toolchain == 'nightly' }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
override: true
- name: Run the tests
run: cargo test -- --nocapture