name: Build Master Branch
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
matrix:
host_os:
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: ${{ matrix.host_os }}
steps:
- uses: actions/checkout@v3
- name: check
run: cargo check
- name: rustfmt
run: cargo fmt --all -- --check
- name: clippy
run: cargo clippy -- -D warnings
- name: Build
run: cargo build --verbose --all-features --tests --examples
- name: Run tests
run: cargo test --verbose