intermodal/.github/workflows/rust.yaml

39 lines
818 B
YAML
Raw Normal View History

name: Rust
on: [push]
jobs:
build:
strategy:
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v1
- name: Install
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
components: clippy, rustfmt
override: true
- name: Version
run: |
rustup --version
cargo --version
cargo clippy --version
- name: Build
run: cargo build --verbose
- name: Test
run: cargo test --verbose
- name: Clippy
run: cargo clippy
- name: Format
run: cargo fmt -- --check
- name: Lint
if: matrix.os != 'windows-latest'
run: "! grep --color -REn 'FIXME|TODO|XXX' src"