Skip to content

Commit 42faa24

Browse files
committed
Auto merge of #2774 - dtolnay-contrib:checkoutv3, r=Amanieu
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.
2 parents d7abb02 + 449edcf commit 42faa24

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

.github/workflows/bors.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
2222
with:
2323
github_token: "${{ secrets.GITHUB_TOKEN }}"
24-
- uses: actions/checkout@v2
24+
- uses: actions/checkout@v3
2525
- name: Setup Rust toolchain
2626
run: TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
2727
- name: Execute run-docker.sh
@@ -40,7 +40,7 @@ jobs:
4040
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
4141
with:
4242
github_token: "${{ secrets.GITHUB_TOKEN }}"
43-
- uses: actions/checkout@v2
43+
- uses: actions/checkout@v3
4444
- name: Setup Rust toolchain
4545
run: TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
4646
- name: Execute run.sh
@@ -71,7 +71,7 @@ jobs:
7171
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
7272
with:
7373
github_token: "${{ secrets.GITHUB_TOKEN }}"
74-
- uses: actions/checkout@v2
74+
- uses: actions/checkout@v3
7575
- name: Self-update rustup
7676
run: rustup self update
7777
shell: bash
@@ -89,7 +89,7 @@ jobs:
8989
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
9090
with:
9191
github_token: "${{ secrets.GITHUB_TOKEN }}"
92-
- uses: actions/checkout@v2
92+
- uses: actions/checkout@v3
9393
- name: Setup Rust toolchain
9494
run: sh ./ci/install-rust.sh
9595
- name: Check style
@@ -145,7 +145,7 @@ jobs:
145145
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
146146
with:
147147
github_token: "${{ secrets.GITHUB_TOKEN }}"
148-
- uses: actions/checkout@v2
148+
- uses: actions/checkout@v3
149149
- name: Setup Rust toolchain
150150
run: TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
151151
- name: Execute run-docker.sh
@@ -169,7 +169,7 @@ jobs:
169169
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
170170
with:
171171
github_token: "${{ secrets.GITHUB_TOKEN }}"
172-
- uses: actions/checkout@v2
172+
- uses: actions/checkout@v3
173173
- name: Setup Rust toolchain
174174
run: TOOLCHAIN=nightly INSTALL_RUST_SRC=1 sh ./ci/install-rust.sh
175175
- name: Execute run-docker.sh
@@ -184,7 +184,7 @@ jobs:
184184
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
185185
with:
186186
github_token: "${{ secrets.GITHUB_TOKEN }}"
187-
- uses: actions/checkout@v2
187+
- uses: actions/checkout@v3
188188
- name: Setup Rust toolchain
189189
run: sh ./ci/install-rust.sh
190190
- name: Execute run-docker.sh
@@ -214,7 +214,7 @@ jobs:
214214
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
215215
with:
216216
github_token: "${{ secrets.GITHUB_TOKEN }}"
217-
- uses: actions/checkout@v2
217+
- uses: actions/checkout@v3
218218
- name: Setup Rust toolchain
219219
run: TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/install-rust.sh
220220
- name: Execute build.sh
@@ -244,7 +244,7 @@ jobs:
244244
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
245245
with:
246246
github_token: "${{ secrets.GITHUB_TOKEN }}"
247-
- uses: actions/checkout@v2
247+
- uses: actions/checkout@v3
248248
- name: Setup Rust toolchain
249249
run: TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/install-rust.sh
250250
- name: Execute build.sh
@@ -266,7 +266,7 @@ jobs:
266266
stable,
267267
]
268268
steps:
269-
- uses: actions/checkout@v2
269+
- uses: actions/checkout@v3
270270
- name: Self-update rustup
271271
run: rustup self update
272272
shell: bash
@@ -280,7 +280,7 @@ jobs:
280280
runs-on: ubuntu-20.04
281281
continue-on-error: true
282282
steps:
283-
- uses: actions/checkout@v2
283+
- uses: actions/checkout@v3
284284
- name: Setup Rust toolchain
285285
# Should update the semverver revision in semver.sh if we touch nightly ver.
286286
run: TOOLCHAIN=nightly-2021-09-30 sh ./ci/install-rust.sh
@@ -293,7 +293,7 @@ jobs:
293293
runs-on: macos-11
294294
continue-on-error: true
295295
steps:
296-
- uses: actions/checkout@v2
296+
- uses: actions/checkout@v3
297297
- name: Setup Rust toolchain
298298
# Pin nightly version to make semverver compilable.
299299
run: TOOLCHAIN=nightly-2021-09-30 sh ./ci/install-rust.sh
@@ -308,7 +308,7 @@ jobs:
308308
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
309309
with:
310310
github_token: "${{ secrets.GITHUB_TOKEN }}"
311-
- uses: actions/checkout@v2
311+
- uses: actions/checkout@v3
312312
- name: Setup Rust toolchain
313313
run: sh ./ci/install-rust.sh
314314
- name: Generate documentation

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
if: github.repository == 'rust-lang/libc'
1313

1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v3
1616
with:
1717
fetch-depth: 0
1818
- name: Setup Rust toolchain

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
x86_64-unknown-linux-gnu,
2020
]
2121
steps:
22-
- uses: actions/checkout@v2
22+
- uses: actions/checkout@v3
2323
- name: Setup Rust toolchain
2424
run: TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
2525
- name: Execute run-docker.sh
@@ -35,7 +35,7 @@ jobs:
3535
x86_64-apple-darwin,
3636
]
3737
steps:
38-
- uses: actions/checkout@v2
38+
- uses: actions/checkout@v3
3939
- name: Setup Rust toolchain
4040
run: TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
4141
- name: Execute run.sh
@@ -63,7 +63,7 @@ jobs:
6363
# ARCH: i686
6464
- target: i686-pc-windows-msvc
6565
steps:
66-
- uses: actions/checkout@v2
66+
- uses: actions/checkout@v3
6767
- name: Self-update rustup
6868
run: rustup self update
6969
shell: bash
@@ -78,7 +78,7 @@ jobs:
7878
name: Style check
7979
runs-on: ubuntu-20.04
8080
steps:
81-
- uses: actions/checkout@v2
81+
- uses: actions/checkout@v3
8282
- name: Setup Rust toolchain
8383
run: sh ./ci/install-rust.sh
8484
- name: Check style

0 commit comments

Comments
 (0)