From f01cc90cf8d601a716856bc9d29f47df92b779e4 Mon Sep 17 00:00:00 2001 From: tottoto Date: Fri, 21 Apr 2023 22:37:10 +0900 Subject: [PATCH] Update ci (#137) --- .github/workflows/ci.yml | 41 +++++++++------------------------------- 1 file changed, 9 insertions(+), 32 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 22010924..fbd9179b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,52 +15,29 @@ jobs: rust: [stable, beta, nightly] steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 + - uses: actions/checkout@v3 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.rust }} - profile: minimal - override: true components: rustfmt - - - name: cargo test --all - uses: actions-rs/cargo@v1 - with: - command: test - args: --all - - name: cargo test --benches - if: matrix.rust == 'nightly' - uses: actions-rs/cargo@v1 - with: - command: test - args: --benches - + - run: cargo test --workspace + - if: matrix.rust == 'nightly' + run: cargo test --benches - name: Check minimal versions if: matrix.rust == 'nightly' run: | cargo clean cargo update -Z minimal-versions cargo check - - - name: cargo fmt --check - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check + - run: cargo fmt --all --check MSRV: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Install rust ${{ env.minrust }} - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@master with: toolchain: ${{ env.minrust }} - profile: minimal - override: true - - - name: cargo build - uses: actions-rs/cargo@v1 - with: - command: build + - run: cargo build