6
6
branches :
7
7
- libc-0.2
8
8
9
- jobs :
10
- docker_linux_tier1 :
11
- permissions :
12
- contents : read # to fetch code (actions/checkout)
13
-
14
- name : Docker Linux Tier1
15
- runs-on : ubuntu-22.04
16
- strategy :
17
- fail-fast : true
18
- matrix :
19
- target : [
20
- i686-unknown-linux-gnu,
21
- x86_64-unknown-linux-gnu,
22
- ]
23
- steps :
24
- - uses : actions/checkout@v4
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
- permissions :
32
- contents : read # to fetch code (actions/checkout)
33
-
34
- name : macOS
35
- runs-on : macos-13
36
- strategy :
37
- fail-fast : true
38
- matrix :
39
- target : [
40
- x86_64-apple-darwin,
41
- ]
42
- steps :
43
- - uses : actions/checkout@v4
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
- permissions :
51
- contents : read # to fetch code (actions/checkout)
52
-
53
- name : Windows
54
- runs-on : windows-2022
55
- env :
56
- OS : windows
57
- strategy :
58
- fail-fast : true
59
- matrix :
60
- include :
61
- - target : x86_64-pc-windows-gnu
62
- env :
63
- ARCH_BITS : 64
64
- ARCH : x86_64
65
- - target : x86_64-pc-windows-msvc
66
- # - target: i686-pc-windows-gnu
67
- # env:
68
- # ARCH_BITS: 32
69
- # ARCH: i686
70
- - target : i686-pc-windows-msvc
71
- steps :
72
- - uses : actions/checkout@v4
73
- - name : Self-update rustup
74
- run : rustup self update
75
- shell : bash
76
- - name : Setup Rust toolchain
77
- run : TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
78
- shell : bash
79
- - name : Execute run.sh
80
- run : LIBC_CI=1 sh ./ci/run.sh ${{ matrix.target }}
81
- shell : bash
9
+ env :
10
+ LIBC_CI : 1
82
11
12
+ jobs :
83
13
style_check :
84
- permissions :
85
- contents : read # to fetch code (actions/checkout)
86
-
87
14
name : Style check
88
15
runs-on : ubuntu-22.04
89
16
steps :
94
21
run : sh ci/style.sh
95
22
96
23
docker_linux_tier2 :
97
- permissions :
98
- contents : read # to fetch code (actions/checkout)
99
-
100
24
name : Docker Linux Tier2
101
25
needs : [docker_linux_tier1, style_check]
102
26
runs-on : ubuntu-22.04
@@ -123,18 +47,17 @@ jobs:
123
47
wasm32-unknown-emscripten,
124
48
x86_64-linux-android,
125
49
# FIXME: Exec format error (os error 8)
126
- # x86_64-unknown-linux-gnux32,
127
- x86_64-unknown-linux-musl,
50
+ # - x86_64-unknown-linux-gnux32
51
+ - x86_64-unknown-linux-musl
128
52
# FIXME: It seems some items in `src/unix/mod.rs`
129
53
# aren't defined on redox actually.
130
- # x86_64-unknown-redox,
131
- ]
54
+ # - x86_64-unknown-redox
132
55
steps :
133
56
- uses : actions/checkout@v4
134
57
- name : Setup Rust toolchain
135
58
run : TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
136
59
- name : Execute run-docker.sh
137
- run : LIBC_CI=1 sh ./ci/run-docker.sh ${{ matrix.target }}
60
+ run : sh ./ci/run-docker.sh ${{ matrix.target }}
138
61
139
62
# These targets are tier 3 or otherwise need to have CI build std via -Zbuild-std.
140
63
# Because of this, only the nightly compiler can be used on these targets.
@@ -176,41 +99,33 @@ jobs:
176
99
run : LIBC_CI=1 sh ./ci/run-docker.sh switch
177
100
178
101
build_channels_linux :
179
- permissions :
180
- contents : read # to fetch code (actions/checkout)
181
-
182
102
name : Build Channels Linux
183
- needs : docker_linux_tier2
184
103
runs-on : ubuntu-22.04
185
104
env :
186
105
OS : linux
187
106
strategy :
188
107
fail-fast : true
189
108
max-parallel : 5
190
109
matrix :
191
- toolchain : [
192
- stable,
193
- beta,
194
- nightly,
110
+ toolchain :
111
+ - stable
112
+ - beta
113
+ - nightly
195
114
# FIXME: Disabled due to:
196
115
# error: failed to parse registry's information for: serde
197
- # 1.13.0,
198
- 1.19.0,
199
- 1.24.0,
200
- 1.25.0,
201
- 1.30.0,
202
- ]
116
+ # 1.13.0,
117
+ - 1.19.0
118
+ - 1.24.0
119
+ - 1.25.0
120
+ - 1.30.0
203
121
steps :
204
122
- uses : actions/checkout@v4
205
123
- name : Setup Rust toolchain
206
124
run : TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/install-rust.sh
207
125
- name : Execute build.sh
208
- run : LIBC_CI=1 TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
126
+ run : TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
209
127
210
128
build_channels_macos :
211
- permissions :
212
- contents : read # to fetch code (actions/checkout)
213
-
214
129
name : Build Channels macOS
215
130
needs : macos
216
131
env :
@@ -229,47 +144,142 @@ jobs:
229
144
- name : Setup Rust toolchain
230
145
run : TOOLCHAIN=${{ matrix.target.toolchain }} sh ./ci/install-rust.sh
231
146
- name : Execute build.sh
232
- run : LIBC_CI=1 TOOLCHAIN=${{ matrix.target.toolchain }} sh ./ci/build.sh
147
+ run : TOOLCHAIN=${{ matrix.target.toolchain }} sh ./ci/build.sh
233
148
234
149
build_channels_windows :
235
- permissions :
236
- contents : read # to fetch code (actions/checkout)
237
-
238
150
name : Build Channels Windows
239
151
runs-on : windows-2022
240
152
env :
241
153
OS : windows
242
154
strategy :
243
155
fail-fast : true
244
156
matrix :
245
- toolchain : [
246
- 1.19.0,
247
- 1.24.0,
248
- 1.25.0,
249
- 1.30.0,
250
- stable,
251
- ]
157
+ toolchain :
158
+ - 1.19.0
159
+ - 1.24.0
160
+ - 1.25.0
161
+ - 1.30.0
162
+ - stable
252
163
steps :
253
164
- uses : actions/checkout@v4
254
165
- name : Self-update rustup
255
166
run : rustup self update
256
167
shell : bash
257
168
- name : Execute build.sh
258
- run : LIBC_CI=1 TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
169
+ run : TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
259
170
shell : bash
260
171
261
- check_cfg :
262
- permissions :
263
- contents : read # to fetch code (actions/checkout)
172
+ macos :
173
+ name : macOS
174
+ runs-on : macos-13
175
+ strategy :
176
+ fail-fast : true
177
+ matrix :
178
+ target :
179
+ - x86_64-apple-darwin
180
+ steps :
181
+ - uses : actions/checkout@v4
182
+ - name : Setup Rust toolchain
183
+ run : TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
184
+ - name : Execute run.sh
185
+ run : sh ./ci/run.sh ${{ matrix.target }}
264
186
187
+ windows :
188
+ name : Windows
189
+ runs-on : windows-2022
190
+ env :
191
+ OS : windows
192
+ strategy :
193
+ fail-fast : true
194
+ matrix :
195
+ include :
196
+ - target : x86_64-pc-windows-gnu
197
+ env :
198
+ ARCH_BITS : 64
199
+ ARCH : x86_64
200
+ - target : x86_64-pc-windows-msvc
201
+ # - target: i686-pc-windows-gnu
202
+ # env:
203
+ # ARCH_BITS: 32
204
+ # ARCH: i686
205
+ - target : i686-pc-windows-msvc
206
+ steps :
207
+ - uses : actions/checkout@v4
208
+ - name : Self-update rustup
209
+ run : rustup self update
210
+ shell : bash
211
+ - name : Setup Rust toolchain
212
+ run : TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
213
+ shell : bash
214
+ - name : Execute run.sh
215
+ run : sh ./ci/run.sh ${{ matrix.target }}
216
+ shell : bash
217
+
218
+ docker_linux_tier1 :
219
+ name : Docker Linux Tier1
220
+ runs-on : ubuntu-22.04
221
+ strategy :
222
+ fail-fast : true
223
+ matrix :
224
+ target :
225
+ - i686-unknown-linux-gnu
226
+ - x86_64-unknown-linux-gnu
227
+ steps :
228
+ - uses : actions/checkout@v4
229
+ - name : Setup Rust toolchain
230
+ run : TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
231
+ - name : Execute run-docker.sh
232
+ run : sh ./ci/run-docker.sh ${{ matrix.target }}
233
+
234
+ docker_linux_tier2 :
235
+ name : Docker Linux Tier2
236
+ needs : [docker_linux_tier1, style_check]
237
+ runs-on : ubuntu-22.04
238
+ strategy :
239
+ fail-fast : true
240
+ max-parallel : 12
241
+ matrix :
242
+ target :
243
+ - aarch64-linux-android
244
+ - aarch64-unknown-linux-gnu
245
+ - aarch64-unknown-linux-musl
246
+ - arm-linux-androideabi
247
+ - arm-unknown-linux-gnueabihf
248
+ - arm-unknown-linux-musleabihf
249
+ - i686-linux-android
250
+ - i686-unknown-linux-musl
251
+ - powerpc-unknown-linux-gnu
252
+ - powerpc64-unknown-linux-gnu
253
+ - powerpc64le-unknown-linux-gnu
254
+ - s390x-unknown-linux-gnu
255
+ - riscv64gc-unknown-linux-gnu
256
+ - wasm32-wasip1
257
+ - wasm32-wasip2
258
+ - sparc64-unknown-linux-gnu
259
+ - wasm32-unknown-emscripten
260
+ - x86_64-linux-android
261
+ # FIXME: Exec format error (os error 8)
262
+ # - x86_64-unknown-linux-gnux32
263
+ - x86_64-unknown-linux-musl
264
+ # FIXME: It seems some items in `src/unix/mod.rs`
265
+ # aren't defined on redox actually.
266
+ # - x86_64-unknown-redox
267
+ steps :
268
+ - uses : actions/checkout@v4
269
+ - name : Setup Rust toolchain
270
+ run : TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
271
+ - name : Execute run-docker.sh
272
+ run : sh ./ci/run-docker.sh ${{ matrix.target }}
273
+
274
+ check_cfg :
265
275
name : " Check #[cfg]s"
266
276
runs-on : ubuntu-22.04
267
277
steps :
268
278
- uses : actions/checkout@v4
269
279
- name : Setup Rust toolchain
270
280
run : TOOLCHAIN=nightly sh ./ci/install-rust.sh
271
281
- name : Build with check-cfg
272
- run : LIBC_CI=1 LIBC_CHECK_CFG=1 cargo build -Z unstable-options -Z check-cfg
282
+ run : LIBC_CHECK_CFG=1 cargo build -Z unstable-options -Z check-cfg
273
283
274
284
# One job that "summarizes" the success state of this pipeline. This can then be added to branch
275
285
# protection, rather than having to add each job separately.
0 commit comments