File tree Expand file tree Collapse file tree 4 files changed +52
-4
lines changed Expand file tree Collapse file tree 4 files changed +52
-4
lines changed Original file line number Diff line number Diff line change @@ -226,6 +226,30 @@ jobs:
226
226
- name : Execute build.sh
227
227
run : LIBC_CI=1 TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
228
228
229
+ build_channels_windows :
230
+ name : Build Channels Windows
231
+ runs-on : windows-2019
232
+ env :
233
+ OS : windows
234
+ strategy :
235
+ fail-fast : true
236
+ matrix :
237
+ toolchain : [
238
+ 1.19.0,
239
+ 1.24.0,
240
+ 1.25.0,
241
+ 1.30.0,
242
+ stable,
243
+ ]
244
+ steps :
245
+ - uses : actions/checkout@v2
246
+ - name : Self-update rustup
247
+ run : rustup self update
248
+ shell : bash
249
+ - name : Execute build.sh
250
+ run : LIBC_CI=1 TOOLCHAIN=${{ matrix.toolchain }} WIN_TARGET=${{ matrix.target }} sh ./ci/build.sh
251
+ shell : bash
252
+
229
253
semver_linux :
230
254
name : Semver Linux
231
255
runs-on : ubuntu-20.04
@@ -283,6 +307,7 @@ jobs:
283
307
docker_switch,
284
308
build_channels_linux,
285
309
build_channels_macos,
310
+ build_channels_windows,
286
311
docs,
287
312
]
288
313
@@ -303,6 +328,7 @@ jobs:
303
328
docker_switch,
304
329
build_channels_linux,
305
330
build_channels_macos,
331
+ build_channels_windows,
306
332
docs,
307
333
]
308
334
Original file line number Diff line number Diff line change @@ -161,6 +161,13 @@ RUST_NIGHTLY_APPLE_TARGETS="\
161
161
aarch64-apple-darwin \
162
162
"
163
163
164
+ # Must start with `x86_64-pc-windows-msvc` first.
165
+ RUST_NIGHTLY_WINDOWS_TARGETS=" \
166
+ x86_64-pc-windows-msvc \
167
+ x86_64-pc-windows-gnu \
168
+ i686-pc-windows-msvc \
169
+ "
170
+
164
171
# The targets are listed here alphabetically
165
172
TARGETS=" "
166
173
case " ${OS} " in
@@ -189,14 +196,23 @@ case "${OS}" in
189
196
TARGETS=" ${TARGETS} ${RUST_NIGHTLY_APPLE_TARGETS} "
190
197
fi
191
198
199
+ ;;
200
+ windows* )
201
+ TARGETS=${RUST_NIGHTLY_WINDOWS_TARGETS}
202
+
192
203
;;
193
204
* )
194
205
;;
195
206
esac
196
207
197
208
for TARGET in $TARGETS ; do
198
209
if echo " $TARGET " | grep -q " $FILTER " ; then
199
- test_target build " $TARGET "
210
+ if [ " ${OS} " = " windows" ]; then
211
+ TARGET=" $TARGET " sh ./ci/install-rust.sh
212
+ test_target build " $TARGET "
213
+ else
214
+ test_target build " $TARGET "
215
+ fi
200
216
fi
201
217
done
202
218
@@ -265,15 +281,15 @@ if [ "${RUST}" = "nightly" ] && [ "${OS}" = "linux" ]; then
265
281
done
266
282
fi
267
283
268
- RUST_OSX_NO_CORE_TARGETS =" \
284
+ RUST_APPLE_NO_CORE_TARGETS =" \
269
285
armv7-apple-ios \
270
286
armv7s-apple-ios \
271
287
i686-apple-darwin \
272
288
i386-apple-ios \
273
289
"
274
290
275
291
if [ " ${RUST} " = " nightly" ] && [ " ${OS} " = " macos" ]; then
276
- for TARGET in $RUST_OSX_NO_CORE_TARGETS ; do
292
+ for TARGET in $RUST_APPLE_NO_CORE_TARGETS ; do
277
293
if echo " $TARGET " | grep -q " $FILTER " ; then
278
294
test_target build " $TARGET " 1
279
295
fi
Original file line number Diff line number Diff line change 63
63
pub MxCsr_Mask : :: c_ulong,
64
64
pub FloatRegisters : [ M128A ; 8 ] ,
65
65
pub XmmRegisters : [ M128A ; 16 ] ,
66
- _Reserved4: [ :: c_uchar; 96 ] ,
66
+ _Reserved4: [ [ :: c_uchar; 16 ] ; 6 ] ,
67
67
}
68
68
69
69
#[ repr( align( 16 ) ) ]
Original file line number Diff line number Diff line change
1
+ cfg_if ! {
2
+ if #[ cfg( libc_align) ] {
3
+ mod align;
4
+ pub use self :: align:: * ;
5
+ }
6
+ }
You can’t perform that action at this time.
0 commit comments