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