From 473b91f002d24fa0d161f1da3c5fb85256727aa5 Mon Sep 17 00:00:00 2001 From: Benjamin Gilbert Date: Tue, 3 Jan 2023 15:59:04 -0500 Subject: [PATCH 1/2] workflows: replace actions-rs/toolchain with dtolnay/rust-toolchain actions-rs/toolchain is unmaintained. --- .github/workflows/rust.yml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 9c3a60d5..4a94ba9b 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -23,10 +23,9 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 - 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 @@ -38,10 +37,9 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 - 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) @@ -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) @@ -74,10 +71,9 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 - 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 @@ -96,10 +92,9 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 - 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 From 5e41b94578db06f3131f1272242d7584d1850920 Mon Sep 17 00:00:00 2001 From: Benjamin Gilbert Date: Tue, 3 Jan 2023 15:59:08 -0500 Subject: [PATCH 2/2] workflows: update actions to current major versions Fixes deprecation warnings for Node.js 12: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/ --- .github/workflows/rust.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 4a94ba9b..7aa2f9c1 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install toolchain uses: dtolnay/rust-toolchain@v1 with: @@ -35,7 +35,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install toolchain uses: dtolnay/rust-toolchain@v1 with: @@ -49,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 | \ @@ -69,7 +69,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install toolchain uses: dtolnay/rust-toolchain@v1 with: @@ -90,7 +90,7 @@ jobs: - "nightly" steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install toolchain uses: dtolnay/rust-toolchain@v1 with: