Update rust.yml

This commit is contained in:
Richard Feldman 2019-11-14 23:47:11 +00:00
parent 85547ac2a0
commit fa882cc70e

View file

@ -1,20 +1,52 @@
name: Rust on: [push, pull_request]
on: [push] name: CI
jobs: jobs:
build: test:
name: Test Suite
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: Cache - name: Install LLVM
uses: actions/cache@v1.0.0 run: ./ci/install-llvm.sh 8
- name: Install LLVM - uses: actions-rs/toolchain@v1
run: ./ci/install-llvm.sh 8 with:
shell: bash profile: minimal
- name: Build toolchain: stable
run: cargo build --verbose override: true
- name: Run tests - uses: actions-rs/cargo@v1
run: cargo test --verbose with:
command: test
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add clippy
- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings