8
8
9
9
permissions : {}
10
10
jobs :
11
- docker_linux_tier1 :
12
- permissions :
13
- actions : write # to cancel workflows (rust-lang/simpleinfra/github-actions/cancel-outdated-builds)
14
- contents : read # to fetch code (actions/checkout)
15
-
16
- name : Docker Linux Tier1
17
- runs-on : ubuntu-22.04
18
- strategy :
19
- fail-fast : true
20
- matrix :
21
- target : [
22
- i686-unknown-linux-gnu,
23
- x86_64-unknown-linux-gnu,
24
- ]
25
- steps :
26
- - uses : rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
27
- with :
28
- github_token : " ${{ secrets.GITHUB_TOKEN }}"
29
- - uses : actions/checkout@v3
30
- - name : Setup Rust toolchain
31
- run : TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
32
- - name : Execute run-docker.sh
33
- run : LIBC_CI=1 sh ./ci/run-docker.sh ${{ matrix.target }}
34
-
35
- macos :
36
- permissions :
37
- actions : write # to cancel workflows (rust-lang/simpleinfra/github-actions/cancel-outdated-builds)
38
- contents : read # to fetch code (actions/checkout)
39
-
40
- name : macOS
41
- runs-on : macos-12
42
- strategy :
43
- fail-fast : true
44
- matrix :
45
- target : [
46
- x86_64-apple-darwin,
47
- ]
48
- steps :
49
- - uses : rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
50
- with :
51
- github_token : " ${{ secrets.GITHUB_TOKEN }}"
52
- - uses : actions/checkout@v3
53
- - name : Setup Rust toolchain
54
- run : TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
55
- - name : Execute run.sh
56
- run : LIBC_CI=1 sh ./ci/run.sh ${{ matrix.target }}
57
-
58
- windows :
59
- permissions :
60
- actions : write # to cancel workflows (rust-lang/simpleinfra/github-actions/cancel-outdated-builds)
61
- contents : read # to fetch code (actions/checkout)
62
-
63
- name : Windows
64
- runs-on : windows-2022
65
- env :
66
- OS : windows
67
- strategy :
68
- fail-fast : true
69
- matrix :
70
- include :
71
- - target : x86_64-pc-windows-gnu
72
- env :
73
- ARCH_BITS : 64
74
- ARCH : x86_64
75
- - target : x86_64-pc-windows-msvc
76
- # Disabled because broken:
77
- # https://github.com/rust-lang/libc/issues/1592
78
- # - target: i686-pc-windows-gnu
79
- # env:
80
- # ARCH_BITS: 32
81
- # ARCH: i686
82
- - target : i686-pc-windows-msvc
83
- steps :
84
- - uses : rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
85
- with :
86
- github_token : " ${{ secrets.GITHUB_TOKEN }}"
87
- - uses : actions/checkout@v3
88
- - name : Self-update rustup
89
- run : rustup self update
90
- shell : bash
91
- - name : Setup Rust toolchain
92
- run : TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
93
- shell : bash
94
- - name : Execute run.sh
95
- run : LIBC_CI=1 sh ./ci/run.sh ${{ matrix.target }}
96
- shell : bash
97
-
98
- style_check :
99
- permissions :
100
- actions : write # to cancel workflows (rust-lang/simpleinfra/github-actions/cancel-outdated-builds)
101
- contents : read # to fetch code (actions/checkout)
102
-
103
- name : Style check
104
- runs-on : ubuntu-22.04
105
- steps :
106
- - uses : rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
107
- with :
108
- github_token : " ${{ secrets.GITHUB_TOKEN }}"
109
- - uses : actions/checkout@v3
110
- - name : Setup Rust toolchain
111
- run : sh ./ci/install-rust.sh
112
- - name : Check style
113
- run : sh ci/style.sh
114
-
115
11
docker_linux_tier2 :
116
12
permissions :
117
13
actions : write # to cancel workflows (rust-lang/simpleinfra/github-actions/cancel-outdated-builds)
118
14
contents : read # to fetch code (actions/checkout)
119
15
120
16
name : Docker Linux Tier2
121
- needs : [docker_linux_tier1, style_check]
122
17
runs-on : ubuntu-22.04
123
18
strategy :
124
19
fail-fast : true
125
20
max-parallel : 12
126
21
matrix :
127
22
target : [
128
- # FIXME: Mysterious failures in CI, see
129
- # https://github.com/rust-lang/libc/issues/2081
130
- # aarch64-linux-android,
131
- aarch64-unknown-linux-gnu,
132
- aarch64-unknown-linux-musl,
133
- # FIXME: The emulator gets stuck.
134
- # arm-linux-androideabi,
135
- arm-unknown-linux-gnueabihf,
136
- arm-unknown-linux-musleabihf,
137
- asmjs-unknown-emscripten,
138
- # FIXME: Started to fail since 2022-10-10:
139
- # error: linking with `i686-linux-android-gcc` failed: exit status: 1
140
- # ld: error: cannot find -lunwind
141
- # i686-linux-android,
142
- i686-unknown-linux-musl,
143
- mips-unknown-linux-gnu,
144
- mips-unknown-linux-musl,
145
- # FIXME: Somehow failed on CI
146
- # https://github.com/rust-lang/libc/runs/1659882216
147
- # mips64-unknown-linux-gnuabi64,
148
- # mips64el-unknown-linux-gnuabi64,
149
- mipsel-unknown-linux-musl,
150
- powerpc-unknown-linux-gnu,
151
- powerpc64-unknown-linux-gnu,
152
- powerpc64le-unknown-linux-gnu,
153
- s390x-unknown-linux-gnu,
154
- riscv64gc-unknown-linux-gnu,
155
- # FIXME: A recent nightly causes a linker failure:
156
- # https://github.com/rust-lang/rust/issues/76679
157
- # See this comment for more details:
158
- # https://github.com/rust-lang/libc/pull/2225#issuecomment-880696737
159
- # wasm32-wasi,
160
- sparc64-unknown-linux-gnu,
161
- wasm32-unknown-emscripten,
162
- # FIXME: Started to fail since 2022-10-10:
163
- # error: linking with `x86_64-linux-android-gcc` failed: exit status: 1
164
- # ld: error: cannot find -lunwind
165
- # x86_64-linux-android,
166
- x86_64-unknown-linux-gnux32,
167
- x86_64-unknown-linux-musl,
168
- # FIXME: It seems some items in `src/unix/mod.rs`
169
- # aren't defined on redox actually.
170
- # x86_64-unknown-redox,
23
+ i686-linux-android,
171
24
]
172
25
steps :
173
26
- uses : rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
@@ -179,195 +32,6 @@ jobs:
179
32
- name : Execute run-docker.sh
180
33
run : LIBC_CI=1 sh ./ci/run-docker.sh ${{ matrix.target }}
181
34
182
- # These targets are tier 3 or otherwise need to have CI build std via -Zbuild-std.
183
- # Because of this, only the nightly compiler can be used on these targets.
184
- docker_linux_build_std :
185
- permissions :
186
- actions : write # to cancel workflows (rust-lang/simpleinfra/github-actions/cancel-outdated-builds)
187
- contents : read # to fetch code (actions/checkout)
188
-
189
- if : ${{ false }} # This is currently broken
190
- name : Docker Linux Build-Std Targets
191
- needs : [docker_linux_tier1, style_check]
192
- runs-on : ubuntu-22.04
193
- strategy :
194
- fail-fast : true
195
- max-parallel : 12
196
- matrix :
197
- target : [
198
- armv7-unknown-linux-uclibceabihf
199
- ]
200
- steps :
201
- - uses : rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
202
- with :
203
- github_token : " ${{ secrets.GITHUB_TOKEN }}"
204
- - uses : actions/checkout@v3
205
- - name : Setup Rust toolchain
206
- run : TOOLCHAIN=nightly INSTALL_RUST_SRC=1 sh ./ci/install-rust.sh
207
- - name : Execute run-docker.sh
208
- run : LIBC_CI=1 TOOLCHAIN=nightly LIBC_CI_ZBUILD_STD=1 sh ./ci/run-docker.sh ${{ matrix.target }}
209
-
210
- # devkitpro's pacman needs to be connected from Docker.
211
- docker_switch :
212
- permissions :
213
- actions : write # to cancel workflows (rust-lang/simpleinfra/github-actions/cancel-outdated-builds)
214
- contents : read # to fetch code (actions/checkout)
215
-
216
- name : Docker Switch
217
- needs : [docker_linux_tier1, style_check]
218
- runs-on : ubuntu-22.04
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@v3
224
- - name : Setup Rust toolchain
225
- run : sh ./ci/install-rust.sh
226
- - name : Execute run-docker.sh
227
- run : LIBC_CI=1 sh ./ci/run-docker.sh switch
228
-
229
- build_channels_linux :
230
- permissions :
231
- actions : write # to cancel workflows (rust-lang/simpleinfra/github-actions/cancel-outdated-builds)
232
- contents : read # to fetch code (actions/checkout)
233
-
234
- name : Build Channels Linux
235
- needs : docker_linux_tier2
236
- runs-on : ubuntu-22.04
237
- env :
238
- OS : linux
239
- strategy :
240
- fail-fast : true
241
- max-parallel : 5
242
- matrix :
243
- toolchain : [
244
- stable,
245
- beta,
246
- nightly,
247
- 1.13.0,
248
- 1.19.0,
249
- 1.24.0,
250
- 1.25.0,
251
- 1.30.0,
252
- ]
253
- steps :
254
- - uses : rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
255
- with :
256
- github_token : " ${{ secrets.GITHUB_TOKEN }}"
257
- - uses : actions/checkout@v3
258
- - name : Setup Rust toolchain
259
- run : TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/install-rust.sh
260
- - name : Execute build.sh
261
- run : LIBC_CI=1 TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
262
-
263
- build_channels_macos :
264
- permissions :
265
- contents : read # to fetch code (actions/checkout)
266
-
267
- name : Build Channels macOS
268
- needs : macos
269
- # FIXME: Use macOS 11 for now as CI failed with a linker error on macOS 12 image:
270
- # ld: in /.../x86_64-apple-darwin/lib/libstd-a4729905.rlib(rust.metadata.bin),
271
- # archive member 'rust.metadata.bin' with length 2958149 is not mach-o or llvm bitcode file '/.../x86_64-apple-darwin/lib/libstd-a4729905.rlib'
272
- # Possibly related: https://github.com/actions/runner-images/issues/6350
273
- runs-on : macos-11
274
- env :
275
- OS : macos
276
- strategy :
277
- fail-fast : true
278
- max-parallel : 4
279
- matrix :
280
- toolchain : [
281
- stable,
282
- beta,
283
- nightly,
284
- 1.13.0,
285
- 1.19.0,
286
- 1.24.0,
287
- 1.25.0,
288
- 1.30.0,
289
- ]
290
- steps :
291
- - uses : rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
292
- with :
293
- github_token : " ${{ secrets.GITHUB_TOKEN }}"
294
- - uses : actions/checkout@v3
295
- - name : Setup Rust toolchain
296
- run : TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/install-rust.sh
297
- - name : Execute build.sh
298
- run : LIBC_CI=1 TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
299
-
300
- build_channels_windows :
301
- permissions :
302
- contents : read # to fetch code (actions/checkout)
303
-
304
- name : Build Channels Windows
305
- runs-on : windows-2022
306
- env :
307
- OS : windows
308
- strategy :
309
- fail-fast : true
310
- matrix :
311
- toolchain : [
312
- 1.19.0,
313
- 1.24.0,
314
- 1.25.0,
315
- 1.30.0,
316
- stable,
317
- ]
318
- steps :
319
- - uses : actions/checkout@v3
320
- - name : Self-update rustup
321
- run : rustup self update
322
- shell : bash
323
- - name : Execute build.sh
324
- run : LIBC_CI=1 TOOLCHAIN=${{ matrix.toolchain }} WIN_TARGET=${{ matrix.target }} sh ./ci/build.sh
325
- shell : bash
326
-
327
- semver_linux :
328
- if : ${{ false }} # This is currently broken
329
- name : Semver Linux
330
- runs-on : ubuntu-22.04
331
- continue-on-error : true
332
- steps :
333
- - uses : actions/checkout@v3
334
- - name : Setup Rust toolchain
335
- # Should update the semverver revision in semver.sh if we touch nightly ver.
336
- run : TOOLCHAIN=nightly-2022-05-23 sh ./ci/install-rust.sh
337
- - name : Check breaking changes
338
- run : sh ci/semver.sh linux
339
-
340
- semver_macos :
341
- if : ${{ false }} # This is currently broken
342
- name : Semver macOS
343
- runs-on : macos-12
344
- continue-on-error : true
345
- steps :
346
- - uses : actions/checkout@v3
347
- - name : Setup Rust toolchain
348
- # Pin nightly version to make semverver compilable.
349
- run : TOOLCHAIN=nightly-2022-05-23 sh ./ci/install-rust.sh
350
- - name : Check breaking changes
351
- run : sh ci/semver.sh macos
352
-
353
- docs :
354
- permissions :
355
- actions : write # to cancel workflows (rust-lang/simpleinfra/github-actions/cancel-outdated-builds)
356
- contents : read # to fetch code (actions/checkout)
357
-
358
- name : Generate documentation
359
- runs-on : ubuntu-22.04
360
- needs : docker_linux_tier2
361
- steps :
362
- - uses : rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
363
- with :
364
- github_token : " ${{ secrets.GITHUB_TOKEN }}"
365
- - uses : actions/checkout@v3
366
- - name : Setup Rust toolchain
367
- run : sh ./ci/install-rust.sh
368
- - name : Generate documentation
369
- run : LIBC_CI=1 sh ci/dox.sh
370
-
371
35
# These jobs doesn't actually test anything, but they're only used to tell
372
36
# bors the build completed, as there is no practical way to detect when a
373
37
# workflow is successful listening to webhooks only.
@@ -379,17 +43,7 @@ jobs:
379
43
if : github.event.pusher.name == 'bors' && success()
380
44
runs-on : ubuntu-22.04
381
45
needs : [
382
- docker_linux_tier1,
383
46
docker_linux_tier2,
384
- # docker_linux_build_std,
385
- macos,
386
- windows,
387
- style_check,
388
- docker_switch,
389
- build_channels_linux,
390
- build_channels_macos,
391
- build_channels_windows,
392
- docs,
393
47
]
394
48
395
49
steps :
@@ -401,17 +55,7 @@ jobs:
401
55
if : github.event.pusher.name == 'bors' && (failure() || cancelled())
402
56
runs-on : ubuntu-22.04
403
57
needs : [
404
- docker_linux_tier1,
405
58
docker_linux_tier2,
406
- # docker_linux_build_std,
407
- macos,
408
- windows,
409
- style_check,
410
- docker_switch,
411
- build_channels_linux,
412
- build_channels_macos,
413
- build_channels_windows,
414
- docs,
415
59
]
416
60
417
61
steps :
0 commit comments