File tree Expand file tree Collapse file tree 6 files changed +21
-21
lines changed Expand file tree Collapse file tree 6 files changed +21
-21
lines changed Original file line number Diff line number Diff line change 99jobs :
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 :
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 :
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,
Original file line number Diff line number Diff line change 88jobs :
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 :
Original file line number Diff line number Diff line change 1010jobs :
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 :
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 :
Original file line number Diff line number Diff line change @@ -47,13 +47,13 @@ if [ "$OS" = "windows" ]; then
4747fi
4848
4949echo " Query rust and cargo versions"
50+ command -v rustc
51+ command -v cargo
52+ command -v rustup
5053rustc -Vv
5154cargo -V
5255rustup -Vv
5356rustup show
54- which rustc
55- which cargo
56- which rustup
5757
5858echo " Generate lockfile"
5959N=5
Original file line number Diff line number Diff 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 \
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ set -ex
44
55rustc 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
1313if shellcheck --version ; then
1414 # GHA's shellcheck is too old (0.4.6) and cannot handle SC2153 correctly.
You can’t perform that action at this time.
0 commit comments