File tree 6 files changed +21
-21
lines changed
6 files changed +21
-21
lines changed Original file line number Diff line number Diff line change 9
9
jobs :
10
10
docker_linux_tier1 :
11
11
name : Docker Linux Tier1
12
- runs-on : ubuntu-18 .04
12
+ runs-on : ubuntu-20 .04
13
13
strategy :
14
14
fail-fast : true
15
15
matrix :
81
81
82
82
style_check :
83
83
name : Style check
84
- runs-on : ubuntu-18 .04
84
+ runs-on : ubuntu-20 .04
85
85
strategy :
86
86
fail-fast : true
87
87
steps :
97
97
docker_linux_tier2 :
98
98
name : Docker Linux Tier2
99
99
needs : [docker_linux_tier1, style_check]
100
- runs-on : ubuntu-18 .04
100
+ runs-on : ubuntu-20 .04
101
101
strategy :
102
102
fail-fast : true
103
103
max-parallel : 12
@@ -149,7 +149,7 @@ jobs:
149
149
docker_switch :
150
150
name : Docker Switch
151
151
needs : [docker_linux_tier1, style_check]
152
- runs-on : ubuntu-18 .04
152
+ runs-on : ubuntu-20 .04
153
153
strategy :
154
154
fail-fast : true
155
155
steps :
@@ -165,7 +165,7 @@ jobs:
165
165
build_channels_linux :
166
166
name : Build Channels Linux
167
167
needs : docker_linux_tier2
168
- runs-on : ubuntu-18 .04
168
+ runs-on : ubuntu-20 .04
169
169
env :
170
170
OS : linux
171
171
strategy :
@@ -225,7 +225,7 @@ jobs:
225
225
semver_linux :
226
226
name : Semver Linux
227
227
needs : build_channels_linux
228
- runs-on : ubuntu-18 .04
228
+ runs-on : ubuntu-20 .04
229
229
strategy :
230
230
fail-fast : true
231
231
steps :
@@ -258,7 +258,7 @@ jobs:
258
258
259
259
docs :
260
260
name : Generate documentation
261
- runs-on : ubuntu-18 .04
261
+ runs-on : ubuntu-20 .04
262
262
needs : docker_linux_tier2
263
263
strategy :
264
264
fail-fast : true
@@ -281,7 +281,7 @@ jobs:
281
281
end_success :
282
282
name : bors build finished
283
283
if : github.event.pusher.name == 'bors' && success()
284
- runs-on : ubuntu-18 .04
284
+ runs-on : ubuntu-20 .04
285
285
needs : [
286
286
docker_linux_tier1,
287
287
docker_linux_tier2,
@@ -303,7 +303,7 @@ jobs:
303
303
end_failure :
304
304
name : bors build finished
305
305
if : github.event.pusher.name == 'bors' && (failure() || cancelled())
306
- runs-on : ubuntu-18 .04
306
+ runs-on : ubuntu-20 .04
307
307
needs : [
308
308
docker_linux_tier1,
309
309
docker_linux_tier2,
Original file line number Diff line number Diff line change 8
8
jobs :
9
9
upload_docs :
10
10
name : Upload documentation
11
- runs-on : ubuntu-18 .04
11
+ runs-on : ubuntu-20 .04
12
12
if : github.repository == 'rust-lang/libc'
13
13
14
14
steps :
Original file line number Diff line number Diff line change 10
10
jobs :
11
11
docker_linux_tier1 :
12
12
name : Docker Linux Tier1
13
- runs-on : ubuntu-18 .04
13
+ runs-on : ubuntu-20 .04
14
14
strategy :
15
15
fail-fast : true
16
16
matrix :
73
73
74
74
style_check :
75
75
name : Style check
76
- runs-on : ubuntu-18 .04
76
+ runs-on : ubuntu-20 .04
77
77
strategy :
78
78
fail-fast : true
79
79
steps :
Original file line number Diff line number Diff line change @@ -47,13 +47,13 @@ if [ "$OS" = "windows" ]; then
47
47
fi
48
48
49
49
echo " Query rust and cargo versions"
50
+ command -v rustc
51
+ command -v cargo
52
+ command -v rustup
50
53
rustc -Vv
51
54
cargo -V
52
55
rustup -Vv
53
56
rustup show
54
- which rustc
55
- which cargo
56
- which rustup
57
57
58
58
echo " Generate lockfile"
59
59
N=5
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ build_switch() {
62
62
kvm=" "
63
63
fi
64
64
65
- cp " $( which rustup) " " $( rustc --print sysroot) /bin"
65
+ cp " $( command -v rustup) " " $( rustc --print sysroot) /bin"
66
66
67
67
docker run \
68
68
--rm \
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ set -ex
4
4
5
5
rustc ci/style.rs && ./style src
6
6
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
12
12
13
13
if shellcheck --version ; then
14
14
# 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