2019-10-22 12:56:36 -07:00
|
|
|
name: Rust
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build on ${{ matrix.os }}
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2020-02-26 21:09:05 -08:00
|
|
|
os: [ubuntu-16.04]
|
2019-10-22 12:56:36 -07:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
2020-02-04 22:04:29 -08:00
|
|
|
toolchain: 1.41.0
|
2019-10-22 12:56:36 -07:00
|
|
|
override: true
|
2020-04-04 08:48:31 -07:00
|
|
|
components: rustfmt, clippy
|
2019-10-22 12:56:36 -07:00
|
|
|
- name: cargo fetch
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: fetch
|
|
|
|
- name: Build
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: build
|
2019-10-22 14:18:31 -07:00
|
|
|
args: --verbose --release --all
|
2019-10-22 13:21:18 -07:00
|
|
|
- name: Run tests
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: test
|
|
|
|
args: --verbose --release --all
|