7
7
- try
8
8
9
9
jobs :
10
- docker_linux_tier1 :
11
- name : Docker Linux Tier1
12
- runs-on : ubuntu-20.04
13
- strategy :
14
- fail-fast : true
15
- matrix :
16
- target : [
17
- i686-unknown-linux-gnu,
18
- x86_64-unknown-linux-gnu,
19
- ]
20
- steps :
21
- - uses : rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
22
- with :
23
- github_token : " ${{ secrets.GITHUB_TOKEN }}"
24
- - uses : actions/checkout@v2
25
- - name : Setup Rust toolchain
26
- run : TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
27
- - name : Execute run-docker.sh
28
- run : LIBC_CI=1 sh ./ci/run-docker.sh ${{ matrix.target }}
29
-
30
- macos :
31
- name : macOS
32
- runs-on : macos-10.15
33
- strategy :
34
- fail-fast : true
35
- matrix :
36
- target : [
37
- x86_64-apple-darwin,
38
- ]
39
- steps :
40
- - uses : rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
41
- with :
42
- github_token : " ${{ secrets.GITHUB_TOKEN }}"
43
- - uses : actions/checkout@v2
44
- - name : Setup Rust toolchain
45
- run : TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
46
- - name : Execute run.sh
47
- run : LIBC_CI=1 sh ./ci/run.sh ${{ matrix.target }}
48
-
49
- windows :
50
- name : Windows
51
- runs-on : windows-2019
52
- env :
53
- OS : windows
54
- strategy :
55
- fail-fast : true
56
- matrix :
57
- include :
58
- - target : x86_64-pc-windows-gnu
59
- env :
60
- ARCH_BITS : 64
61
- ARCH : x86_64
62
- - target : x86_64-pc-windows-msvc
63
- # Disabled because broken:
64
- # https://github.com/rust-lang/libc/issues/1592
65
- # - target: i686-pc-windows-gnu
66
- # env:
67
- # ARCH_BITS: 32
68
- # ARCH: i686
69
- - target : i686-pc-windows-msvc
70
- steps :
71
- - uses : rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
72
- with :
73
- github_token : " ${{ secrets.GITHUB_TOKEN }}"
74
- - uses : actions/checkout@v2
75
- - name : Self-update rustup
76
- run : rustup self update
77
- shell : bash
78
- - name : Setup Rust toolchain
79
- run : TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
80
- shell : bash
81
- - name : Execute run.sh
82
- run : LIBC_CI=1 sh ./ci/run.sh ${{ matrix.target }}
83
- shell : bash
84
-
85
10
style_check :
86
11
name : Style check
87
12
runs-on : ubuntu-20.04
88
- strategy :
89
- fail-fast : true
90
13
steps :
91
14
- uses : rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
92
15
with :
@@ -99,45 +22,13 @@ jobs:
99
22
100
23
docker_linux_tier2 :
101
24
name : Docker Linux Tier2
102
- needs : [docker_linux_tier1, style_check]
103
25
runs-on : ubuntu-20.04
104
26
strategy :
105
27
fail-fast : true
106
28
max-parallel : 12
107
29
matrix :
108
30
target : [
109
- # FIXME: Mysterious failures in CI, see
110
- # https://github.com/rust-lang/libc/issues/2081
111
- # aarch64-linux-android,
112
- aarch64-unknown-linux-gnu,
113
- aarch64-unknown-linux-musl,
114
- arm-linux-androideabi,
115
- arm-unknown-linux-gnueabihf,
116
- arm-unknown-linux-musleabihf,
117
- asmjs-unknown-emscripten,
118
- i686-linux-android,
119
- i686-unknown-linux-musl,
120
- mips-unknown-linux-gnu,
121
- mips-unknown-linux-musl,
122
- # FIXME: Somehow failed on CI
123
- # https://github.com/rust-lang/libc/runs/1659882216
124
- # mips64-unknown-linux-gnuabi64,
125
- # mips64el-unknown-linux-gnuabi64,
126
- mipsel-unknown-linux-musl,
127
- powerpc-unknown-linux-gnu,
128
- powerpc64-unknown-linux-gnu,
129
- powerpc64le-unknown-linux-gnu,
130
- s390x-unknown-linux-gnu,
131
- riscv64gc-unknown-linux-gnu,
132
31
wasm32-wasi,
133
- sparc64-unknown-linux-gnu,
134
- wasm32-unknown-emscripten,
135
- x86_64-linux-android,
136
- x86_64-unknown-linux-gnux32,
137
- x86_64-unknown-linux-musl,
138
- # FIXME: It seems some items in `src/unix/mod.rs`
139
- # aren't defined on redox actually.
140
- # x86_64-unknown-redox,
141
32
]
142
33
steps :
143
34
- uses : rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
@@ -149,129 +40,6 @@ jobs:
149
40
- name : Execute run-docker.sh
150
41
run : LIBC_CI=1 sh ./ci/run-docker.sh ${{ matrix.target }}
151
42
152
- # devkitpro's pacman needs to be connected from Docker.
153
- docker_switch :
154
- name : Docker Switch
155
- needs : [docker_linux_tier1, style_check]
156
- runs-on : ubuntu-20.04
157
- strategy :
158
- fail-fast : true
159
- steps :
160
- - uses : rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
161
- with :
162
- github_token : " ${{ secrets.GITHUB_TOKEN }}"
163
- - uses : actions/checkout@v2
164
- - name : Setup Rust toolchain
165
- run : sh ./ci/install-rust.sh
166
- - name : Execute run-docker.sh
167
- run : LIBC_CI=1 sh ./ci/run-docker.sh switch
168
-
169
- build_channels_linux :
170
- name : Build Channels Linux
171
- needs : docker_linux_tier2
172
- runs-on : ubuntu-20.04
173
- env :
174
- OS : linux
175
- strategy :
176
- fail-fast : true
177
- max-parallel : 5
178
- matrix :
179
- toolchain : [
180
- stable,
181
- beta,
182
- nightly,
183
- 1.13.0,
184
- 1.19.0,
185
- 1.24.0,
186
- 1.25.0,
187
- 1.30.0,
188
- ]
189
- steps :
190
- - uses : rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
191
- with :
192
- github_token : " ${{ secrets.GITHUB_TOKEN }}"
193
- - uses : actions/checkout@v2
194
- - name : Setup Rust toolchain
195
- run : TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/install-rust.sh
196
- - name : Execute build.sh
197
- run : LIBC_CI=1 TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
198
-
199
- build_channels_macos :
200
- name : Build Channels macOS
201
- needs : macos
202
- runs-on : macos-10.15
203
- env :
204
- OS : macos
205
- strategy :
206
- fail-fast : true
207
- max-parallel : 4
208
- matrix :
209
- toolchain : [
210
- stable,
211
- beta,
212
- nightly,
213
- 1.13.0,
214
- 1.19.0,
215
- 1.24.0,
216
- 1.25.0,
217
- 1.30.0,
218
- ]
219
- steps :
220
- - uses : rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
221
- with :
222
- github_token : " ${{ secrets.GITHUB_TOKEN }}"
223
- - uses : actions/checkout@v2
224
- - name : Setup Rust toolchain
225
- run : TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/install-rust.sh
226
- - name : Execute build.sh
227
- run : LIBC_CI=1 TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
228
-
229
- semver_linux :
230
- name : Semver Linux
231
- needs : build_channels_linux
232
- runs-on : ubuntu-20.04
233
- continue-on-error : true
234
- strategy :
235
- fail-fast : true
236
- steps :
237
- - uses : actions/checkout@v2
238
- - name : Setup Rust toolchain
239
- # Should update the semverver revision in semver.sh if we touch nightly ver.
240
- run : TOOLCHAIN=nightly-2020-11-19 sh ./ci/install-rust.sh
241
- - name : Check breaking changes
242
- run : sh ci/semver.sh linux
243
-
244
- semver_macos :
245
- name : Semver macOS
246
- needs : build_channels_macos
247
- runs-on : macos-10.15
248
- continue-on-error : true
249
- strategy :
250
- fail-fast : true
251
- steps :
252
- - uses : actions/checkout@v2
253
- - name : Setup Rust toolchain
254
- # FIXME: Pin nightly version to make semverver compilable.
255
- run : TOOLCHAIN=nightly-2020-11-19 sh ./ci/install-rust.sh
256
- - name : Check breaking changes
257
- run : sh ci/semver.sh macos
258
-
259
- docs :
260
- name : Generate documentation
261
- runs-on : ubuntu-20.04
262
- needs : docker_linux_tier2
263
- strategy :
264
- fail-fast : true
265
- steps :
266
- - uses : rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
267
- with :
268
- github_token : " ${{ secrets.GITHUB_TOKEN }}"
269
- - uses : actions/checkout@v2
270
- - name : Setup Rust toolchain
271
- run : sh ./ci/install-rust.sh
272
- - name : Generate documentation
273
- run : LIBC_CI=1 sh ci/dox.sh
274
-
275
43
# These jobs doesn't actually test anything, but they're only used to tell
276
44
# bors the build completed, as there is no practical way to detect when a
277
45
# workflow is successful listening to webhooks only.
@@ -283,15 +51,8 @@ jobs:
283
51
if : github.event.pusher.name == 'bors' && success()
284
52
runs-on : ubuntu-20.04
285
53
needs : [
286
- docker_linux_tier1,
287
54
docker_linux_tier2,
288
- macos,
289
- windows,
290
55
style_check,
291
- docker_switch,
292
- build_channels_linux,
293
- build_channels_macos,
294
- docs,
295
56
]
296
57
297
58
steps :
@@ -303,15 +64,8 @@ jobs:
303
64
if : github.event.pusher.name == 'bors' && (failure() || cancelled())
304
65
runs-on : ubuntu-20.04
305
66
needs : [
306
- docker_linux_tier1,
307
67
docker_linux_tier2,
308
- macos,
309
- windows,
310
68
style_check,
311
- docker_switch,
312
- build_channels_linux,
313
- build_channels_macos,
314
- docs,
315
69
]
316
70
317
71
steps :
0 commit comments