Skip to content

Commit 05dfed5

Browse files
committed
Auto merge of #1965 - JohnTitor:gha-ubuntu-20, r=JohnTitor
Update GHA Ubuntu version to 20.04
2 parents 43f9f53 + 8625029 commit 05dfed5

File tree

6 files changed

+21
-21
lines changed

6 files changed

+21
-21
lines changed

.github/workflows/bors.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
docker_linux_tier1:
1111
name: Docker Linux Tier1
12-
runs-on: ubuntu-18.04
12+
runs-on: ubuntu-20.04
1313
strategy:
1414
fail-fast: true
1515
matrix:
@@ -81,7 +81,7 @@ jobs:
8181

8282
style_check:
8383
name: Style check
84-
runs-on: ubuntu-18.04
84+
runs-on: ubuntu-20.04
8585
strategy:
8686
fail-fast: true
8787
steps:
@@ -97,7 +97,7 @@ jobs:
9797
docker_linux_tier2:
9898
name: Docker Linux Tier2
9999
needs: [docker_linux_tier1, style_check]
100-
runs-on: ubuntu-18.04
100+
runs-on: ubuntu-20.04
101101
strategy:
102102
fail-fast: true
103103
max-parallel: 12
@@ -149,7 +149,7 @@ jobs:
149149
docker_switch:
150150
name: Docker Switch
151151
needs: [docker_linux_tier1, style_check]
152-
runs-on: ubuntu-18.04
152+
runs-on: ubuntu-20.04
153153
strategy:
154154
fail-fast: true
155155
steps:
@@ -165,7 +165,7 @@ jobs:
165165
build_channels_linux:
166166
name: Build Channels Linux
167167
needs: docker_linux_tier2
168-
runs-on: ubuntu-18.04
168+
runs-on: ubuntu-20.04
169169
env:
170170
OS: linux
171171
strategy:
@@ -225,7 +225,7 @@ jobs:
225225
semver_linux:
226226
name: Semver Linux
227227
needs: build_channels_linux
228-
runs-on: ubuntu-18.04
228+
runs-on: ubuntu-20.04
229229
strategy:
230230
fail-fast: true
231231
steps:
@@ -258,7 +258,7 @@ jobs:
258258

259259
docs:
260260
name: Generate documentation
261-
runs-on: ubuntu-18.04
261+
runs-on: ubuntu-20.04
262262
needs: docker_linux_tier2
263263
strategy:
264264
fail-fast: true
@@ -281,7 +281,7 @@ jobs:
281281
end_success:
282282
name: bors build finished
283283
if: github.event.pusher.name == 'bors' && success()
284-
runs-on: ubuntu-18.04
284+
runs-on: ubuntu-20.04
285285
needs: [
286286
docker_linux_tier1,
287287
docker_linux_tier2,
@@ -303,7 +303,7 @@ jobs:
303303
end_failure:
304304
name: bors build finished
305305
if: github.event.pusher.name == 'bors' && (failure() || cancelled())
306-
runs-on: ubuntu-18.04
306+
runs-on: ubuntu-20.04
307307
needs: [
308308
docker_linux_tier1,
309309
docker_linux_tier2,

.github/workflows/docs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
upload_docs:
1010
name: Upload documentation
11-
runs-on: ubuntu-18.04
11+
runs-on: ubuntu-20.04
1212
if: github.repository == 'rust-lang/libc'
1313

1414
steps:

.github/workflows/main.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
jobs:
1111
docker_linux_tier1:
1212
name: Docker Linux Tier1
13-
runs-on: ubuntu-18.04
13+
runs-on: ubuntu-20.04
1414
strategy:
1515
fail-fast: true
1616
matrix:
@@ -73,7 +73,7 @@ jobs:
7373

7474
style_check:
7575
name: Style check
76-
runs-on: ubuntu-18.04
76+
runs-on: ubuntu-20.04
7777
strategy:
7878
fail-fast: true
7979
steps:

ci/install-rust.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ if [ "$OS" = "windows" ]; then
4747
fi
4848

4949
echo "Query rust and cargo versions"
50+
command -v rustc
51+
command -v cargo
52+
command -v rustup
5053
rustc -Vv
5154
cargo -V
5255
rustup -Vv
5356
rustup show
54-
which rustc
55-
which cargo
56-
which rustup
5757

5858
echo "Generate lockfile"
5959
N=5

ci/run-docker.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ build_switch() {
6262
kvm=""
6363
fi
6464

65-
cp "$(which rustup)" "$(rustc --print sysroot)/bin"
65+
cp "$(command -v rustup)" "$(rustc --print sysroot)/bin"
6666

6767
docker run \
6868
--rm \

ci/style.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ set -ex
44

55
rustc ci/style.rs && ./style src
66

7-
if rustup component add rustfmt-preview ; then
8-
command -v rustfmt
9-
rustfmt -V
10-
cargo fmt --all -- --check
11-
fi
7+
rustup toolchain install nightly -c rustfmt --allow-downgrade
8+
rustup override set nightly
9+
command -v rustfmt
10+
rustfmt -V
11+
cargo fmt --all -- --check
1212

1313
if shellcheck --version ; then
1414
# GHA's shellcheck is too old (0.4.6) and cannot handle SC2153 correctly.

0 commit comments

Comments
 (0)