From 69d2ac7207e11157cde3399c88d72fdf0e61f6e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kat=20March=C3=A1n?= Date: Sat, 19 Oct 2019 11:05:53 -0400 Subject: [PATCH] build: switch to actions-rs (#12) --- .github/workflows/rust.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index f1e23e0..0135521 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -8,19 +8,19 @@ jobs: strategy: matrix: rust: [beta, nightly] - os: [ubuntu-latest, windows-latest] + os: [ubuntu-latest, macOS-latest, windows-latest] steps: - - uses: hecrj/setup-rust-action@master - with: - rust-version: ${{ matrix.rust }} - uses: actions/checkout@v1 - - name: Add Clippy - run: rustup component add clippy - - name: Add Rustfmt - run: rustup component add rustfmt - - name: Build - run: cargo build --verbose + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: ${{ matrix.rust }} + components: rustfmt, clippy + override: true + - name: Check + run: cargo check - name: Rustfmt run: cargo fmt --all -- --check - name: Clippy