name: Build
on:
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose --all-targets
- name: Run tests
run: cargo test --verbose
if: runner.os != 'macOS'
- name: Run tests (macos)
run: sudo "PATH=$PATH" cargo test --verbose
if: runner.os == 'macOS'