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