From 70429c16d5d95fadb54baac07fc1e584185af4e8 Mon Sep 17 00:00:00 2001 From: Rafael Garcia Ruiz Date: Wed, 30 Nov 2022 19:51:24 +0100 Subject: [PATCH] CI: replace actions-rs actions-rs/cargo erased actions-rs/toochain replaced by dtolnay/rust-toolchain@master Closes: #56 Signed-off-by: Rafael Garcia Ruiz --- .github/workflows/ci.yml | 28 +++++++++------------------- 1 file changed, 9 insertions(+), 19 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 20a2815..9afe93a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,26 +15,20 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@stable with: toolchain: stable - - uses: actions-rs/cargo@v1 - with: - command: check - args: --all-features + - run: cargo check --all-features fmt: name: cargo fmt runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@stable with: toolchain: stable - - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all --check + - run: cargo fmt --all --check test: name: cargo test @@ -43,25 +37,21 @@ jobs: - uses: actions/checkout@v3 with: lfs: 'true' - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@stable with: toolchain: stable - - uses: actions-rs/cargo@v1 - with: - command: test + - run: cargo test clippy: name: cargo clippy runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: stable - - uses: actions-rs/cargo@v1 - with: - command: clippy - args: -- -D warnings + - run: cargo clippy -- -D warnings + # Job to key the bors success status against bors: name: bors