From dd4c15cd0db0d372298cefe12abfe5b39fb2d8d4 Mon Sep 17 00:00:00 2001 From: Constantin Nickel Date: Wed, 12 Apr 2023 20:03:33 +0200 Subject: [PATCH] chore: Replace unmaintained/outdated GitHub Actions --- .github/workflows/ci.yml | 42 +++++++++++++--------------------------- 1 file changed, 13 insertions(+), 29 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3d557fee..66aabb5d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,42 +30,34 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install Rust (${{ matrix.rust }}) - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@master with: - profile: minimal toolchain: ${{ matrix.rust }} - override: true - name: Test - uses: actions-rs/cargo@v1 - with: - command: test + run: cargo test - name: Test all benches if: matrix.benches - uses: actions-rs/cargo@v1 - with: - command: test - args: --benches ${{ matrix.features }} + run: cargo test --benches ${{ matrix.features }} msrv: name: Test MSRV runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 + - name: Install Rust - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@master with: - profile: minimal toolchain: "1.49" - override: true - - name: test + + - name: Test run: cargo test -p http - wasm: name: WASM @@ -75,20 +67,12 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install Rust - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: - profile: minimal - toolchain: stable - target: wasm32-unknown-unknown - override: true + targets: wasm32-unknown-unknown - name: Check - uses: actions-rs/cargo@v1 - with: - command: check - args: --target wasm32-unknown-unknown - - + run: cargo check --target wasm32-unknown-unknown