name: Build
on:
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
rust:
- stable
- 1.56.0
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- name: Build without approx-eq
run: cargo build
- name: Run tests
run: cargo test --features approx-eq,serde