Auto merge of #10618 - dtolnay-contrib:checkoutv3, r=ehuss

Update GitHub Actions actions/checkout@v2 to v3

The v2 implementation uses Node 12, which is end-of-life on April 30, 2022. See https://nodejs.org/en/about/releases/. Update to v3, which is based on Node 16 whose support lasts until April 30, 2024.

They made this a major version change (v2 to v3) because old GitHub Enterprise versions aren't necessarily compatible with Node 16, but for github.com-supplied runners (SaaS) there is no practical difference.
This commit is contained in:
bors 2022-04-30 21:26:16 +00:00
commit dc54f15dd3
2 changed files with 5 additions and 5 deletions

View File

@ -53,7 +53,7 @@ jobs:
rust: nightly-gnu rust: nightly-gnu
other: i686-pc-windows-gnu other: i686-pc-windows-gnu
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Update Rustup (temporary workaround) - name: Update Rustup (temporary workaround)
run: rustup self update run: rustup self update
shell: bash shell: bash
@ -103,14 +103,14 @@ jobs:
resolver: resolver:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- run: rustup update stable && rustup default stable - run: rustup update stable && rustup default stable
- run: cargo test --manifest-path crates/resolver-tests/Cargo.toml - run: cargo test --manifest-path crates/resolver-tests/Cargo.toml
build_std: build_std:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- run: rustup update nightly && rustup default nightly - run: rustup update nightly && rustup default nightly
- run: rustup component add rust-src - run: rustup component add rust-src
- run: cargo build - run: cargo build
@ -120,7 +120,7 @@ jobs:
docs: docs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- run: rustup update nightly && rustup default nightly - run: rustup update nightly && rustup default nightly
- run: rustup update stable - run: rustup update stable
- run: rustup component add rust-docs - run: rustup component add rust-docs

View File

@ -46,7 +46,7 @@ jobs:
- beta - beta
- nightly - nightly
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo build --verbose - run: cargo build --verbose
- run: cargo test --verbose - run: cargo test --verbose