From 52400821dd6e8a300d0e72afbebcb8ee7f41a6a0 Mon Sep 17 00:00:00 2001 From: Daniele D'Orazio Date: Sat, 19 Feb 2022 23:57:53 +0100 Subject: [PATCH] github: upgrade rust action --- .github/workflows/rust.yml | 55 +++++++++++++++++++++----------------- 1 file changed, 31 insertions(+), 24 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 1d19bcd..43b3549 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,43 +1,50 @@ -on: push +on: [push] name: Continuous integration jobs: - ci: + test: + name: Test Suite runs-on: ubuntu-latest - strategy: - matrix: - rust: - - stable - - beta - - nightly - steps: - - uses: actions/checkout@v1 - + - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 with: profile: minimal - toolchain: ${{ matrix.rust }} + toolchain: stable override: true - components: rustfmt, clippy - - - uses: actions-rs/cargo@v1 - with: - command: build - args: --release - - uses: actions-rs/cargo@v1 with: command: test - args: --release + fmt: + name: Rustfmt + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - 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 - # - uses: actions-rs/cargo@v1 - # with: - # command: clippy - # args: -- -D warnings + clippy: + name: Clippy + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - 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