diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 9c3a60d5..7aa2f9c1 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -21,12 +21,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@v1 with: - toolchain: "stable" - default: true + toolchain: stable - name: cargo build run: cargo build - name: cargo test @@ -36,12 +35,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@v1 with: - toolchain: "stable" - default: true + toolchain: stable - name: cargo build (release) run: cargo build --release - name: cargo test (release) @@ -51,7 +49,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Detect crate MSRV run: | msrv=$(cargo metadata --format-version 1 --no-deps | \ @@ -59,10 +57,9 @@ jobs: echo "Crate MSRV: $msrv" echo "MSRV=$msrv" >> $GITHUB_ENV - name: Install toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@v1 with: toolchain: ${{ env.MSRV }} - default: true - name: cargo build (release) run: cargo build --release - name: cargo test (release) @@ -72,12 +69,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@v1 with: toolchain: ${{ env['ACTION_LINTS_TOOLCHAIN'] }} - default: true components: rustfmt, clippy - name: cargo clippy (warnings) run: cargo clippy -- -D warnings @@ -94,12 +90,11 @@ jobs: - "nightly" steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@v1 with: toolchain: ${{ matrix.channel }} - default: true - name: cargo build run: cargo build - name: cargo test