build: switch to actions-rs (#12)

This commit is contained in:
Kat Marchán 2019-10-19 11:05:53 -04:00 committed by GitHub
parent 38115599ca
commit 69d2ac7207
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 10 deletions

View File

@ -8,19 +8,19 @@ jobs:
strategy: strategy:
matrix: matrix:
rust: [beta, nightly] rust: [beta, nightly]
os: [ubuntu-latest, windows-latest] os: [ubuntu-latest, macOS-latest, windows-latest]
steps: steps:
- uses: hecrj/setup-rust-action@master
with:
rust-version: ${{ matrix.rust }}
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: Add Clippy - name: Install Rust
run: rustup component add clippy uses: actions-rs/toolchain@v1
- name: Add Rustfmt with:
run: rustup component add rustfmt profile: minimal
- name: Build toolchain: ${{ matrix.rust }}
run: cargo build --verbose components: rustfmt, clippy
override: true
- name: Check
run: cargo check
- name: Rustfmt - name: Rustfmt
run: cargo fmt --all -- --check run: cargo fmt --all -- --check
- name: Clippy - name: Clippy