7
7
- try
8
8
9
9
jobs :
10
- docker_linux_tier1 :
11
- name : Docker Linux Tier1
12
- runs-on : ubuntu-18.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 : Setup Rust toolchain
76
- run : TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
77
- shell : bash
78
- - name : Execute run.sh
79
- run : LIBC_CI=1 sh ./ci/run.sh ${{ matrix.target }}
80
- shell : bash
81
-
82
- style_check :
83
- name : Style check
84
- runs-on : ubuntu-18.04
85
- strategy :
86
- fail-fast : true
87
- steps :
88
- - uses : rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
89
- with :
90
- github_token : " ${{ secrets.GITHUB_TOKEN }}"
91
- - uses : actions/checkout@v2
92
- - name : Setup Rust toolchain
93
- run : sh ./ci/install-rust.sh
94
- - name : Check style
95
- run : sh ci/style.sh
96
-
97
10
docker_linux_tier2 :
98
11
name : Docker Linux Tier2
99
- needs : [docker_linux_tier1, style_check]
100
12
runs-on : ubuntu-18.04
101
13
strategy :
102
14
fail-fast : true
103
15
max-parallel : 12
104
16
matrix :
105
17
target : [
106
- aarch64-linux-android,
107
- aarch64-unknown-linux-gnu,
108
- aarch64-unknown-linux-musl,
109
- arm-linux-androideabi,
110
- arm-unknown-linux-gnueabihf,
111
- arm-unknown-linux-musleabihf,
112
- # FIXME: Disabled because currently broken, see:
113
- # https://github.com/rust-lang/libc/issues/1591
114
- # asmjs-unknown-emscripten,
115
- i686-linux-android,
116
- i686-unknown-linux-musl,
117
- mips-unknown-linux-gnu,
118
- mips-unknown-linux-musl,
119
18
mips64-unknown-linux-gnuabi64,
120
19
mips64el-unknown-linux-gnuabi64,
121
- mipsel-unknown-linux-musl,
122
- powerpc-unknown-linux-gnu,
123
- powerpc64-unknown-linux-gnu,
124
- powerpc64le-unknown-linux-gnu,
125
- s390x-unknown-linux-gnu,
126
- riscv64gc-unknown-linux-gnu,
127
- # FIXME: Figure out why this is disabled.
128
- # wasm32-wasi,
129
- sparc64-unknown-linux-gnu,
130
- wasm32-unknown-emscripten,
131
- x86_64-linux-android,
132
- x86_64-unknown-linux-gnux32,
133
- x86_64-unknown-linux-musl,
134
20
]
135
21
steps :
136
22
- uses : rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
@@ -142,133 +28,6 @@ jobs:
142
28
- name : Execute run-docker.sh
143
29
run : LIBC_CI=1 sh ./ci/run-docker.sh ${{ matrix.target }}
144
30
145
- # devkitpro's pacman needs to be connected from Docker.
146
- docker_switch :
147
- name : Docker Switch
148
- needs : [docker_linux_tier1, style_check]
149
- runs-on : ubuntu-18.04
150
- strategy :
151
- fail-fast : true
152
- steps :
153
- - uses : rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
154
- with :
155
- github_token : " ${{ secrets.GITHUB_TOKEN }}"
156
- - uses : actions/checkout@v2
157
- - name : Setup Rust toolchain
158
- run : sh ./ci/install-rust.sh
159
- - name : Execute run-docker.sh
160
- run : LIBC_CI=1 sh ./ci/run-docker.sh switch
161
-
162
- build_channels_linux :
163
- name : Build Channels Linux
164
- needs : docker_linux_tier2
165
- runs-on : ubuntu-18.04
166
- env :
167
- OS : linux
168
- strategy :
169
- fail-fast : true
170
- max-parallel : 5
171
- matrix :
172
- toolchain : [
173
- stable,
174
- beta,
175
- nightly,
176
- 1.13.0,
177
- 1.19.0,
178
- 1.24.0,
179
- 1.25.0,
180
- 1.30.0,
181
- ]
182
- steps :
183
- - uses : rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
184
- with :
185
- github_token : " ${{ secrets.GITHUB_TOKEN }}"
186
- - uses : actions/checkout@v2
187
- - name : Setup Rust toolchain
188
- run : TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/install-rust.sh
189
- - name : Execute build.sh
190
- run : LIBC_CI=1 TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
191
-
192
- build_channels_macos :
193
- name : Build Channels macOS
194
- needs : macos
195
- runs-on : macos-10.15
196
- env :
197
- OS : macos
198
- strategy :
199
- fail-fast : true
200
- max-parallel : 4
201
- matrix :
202
- toolchain : [
203
- stable,
204
- beta,
205
- nightly,
206
- 1.13.0,
207
- 1.19.0,
208
- 1.24.0,
209
- 1.25.0,
210
- 1.30.0,
211
- ]
212
- steps :
213
- - uses : rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
214
- with :
215
- github_token : " ${{ secrets.GITHUB_TOKEN }}"
216
- - uses : actions/checkout@v2
217
- - name : Setup Rust toolchain
218
- run : TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/install-rust.sh
219
- - name : Execute build.sh
220
- run : LIBC_CI=1 TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
221
-
222
- semver_linux :
223
- name : Semver Linux
224
- needs : build_channels_linux
225
- runs-on : ubuntu-18.04
226
- strategy :
227
- fail-fast : true
228
- steps :
229
- - uses : rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
230
- with :
231
- github_token : " ${{ secrets.GITHUB_TOKEN }}"
232
- - uses : actions/checkout@v2
233
- - name : Setup Rust toolchain
234
- # FIXME: Pin nightly version to make semverver compilable.
235
- run : TOOLCHAIN=nightly-2020-06-18 sh ./ci/install-rust.sh
236
- - name : Check breaking changes
237
- run : sh ci/semver.sh linux
238
-
239
- semver_macos :
240
- name : Semver macOS
241
- needs : build_channels_macos
242
- runs-on : macos-10.15
243
- strategy :
244
- fail-fast : true
245
- steps :
246
- - uses : rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
247
- with :
248
- github_token : " ${{ secrets.GITHUB_TOKEN }}"
249
- - uses : actions/checkout@v2
250
- - name : Setup Rust toolchain
251
- # FIXME: Pin nightly version to make semverver compilable.
252
- run : TOOLCHAIN=nightly-2020-06-18 sh ./ci/install-rust.sh
253
- - name : Check breaking changes
254
- run : sh ci/semver.sh macos
255
-
256
- docs :
257
- name : Generate documentation
258
- runs-on : ubuntu-18.04
259
- needs : docker_linux_tier2
260
- strategy :
261
- fail-fast : true
262
- steps :
263
- - uses : rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
264
- with :
265
- github_token : " ${{ secrets.GITHUB_TOKEN }}"
266
- - uses : actions/checkout@v2
267
- - name : Setup Rust toolchain
268
- run : sh ./ci/install-rust.sh
269
- - name : Generate documentation
270
- run : LIBC_CI=1 sh ci/dox.sh
271
-
272
31
# These jobs doesn't actually test anything, but they're only used to tell
273
32
# bors the build completed, as there is no practical way to detect when a
274
33
# workflow is successful listening to webhooks only.
@@ -280,17 +39,7 @@ jobs:
280
39
if : github.event.pusher.name == 'bors' && success()
281
40
runs-on : ubuntu-18.04
282
41
needs : [
283
- docker_linux_tier1,
284
42
docker_linux_tier2,
285
- macos,
286
- windows,
287
- style_check,
288
- docker_switch,
289
- build_channels_linux,
290
- build_channels_macos,
291
- semver_linux,
292
- semver_macos,
293
- docs,
294
43
]
295
44
296
45
steps :
@@ -302,17 +51,7 @@ jobs:
302
51
if : github.event.pusher.name == 'bors' && (failure() || cancelled())
303
52
runs-on : ubuntu-18.04
304
53
needs : [
305
- docker_linux_tier1,
306
54
docker_linux_tier2,
307
- macos,
308
- windows,
309
- style_check,
310
- docker_switch,
311
- build_channels_linux,
312
- build_channels_macos,
313
- semver_linux,
314
- semver_macos,
315
- docs,
316
55
]
317
56
318
57
steps :
0 commit comments