Skip to content

Commit 3a9e5d0

Browse files
committed
Auto merge of #1527 - Wind-River:filter, r=gnzlbg
Add environment variable FILTER to choose which target(s) to run
2 parents 74c4b15 + c6c6645 commit 3a9e5d0

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

ci/build.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
# Checks that libc builds properly for all supported targets on a particular
44
# Rust version:
5+
# The FILTER environment variable can be used to select which target(s) to build.
6+
# For example: set FILTER to vxworks to select the targets that has vxworks in name
57

68
set -ex
79

@@ -176,7 +178,9 @@ case "${OS}" in
176178
esac
177179

178180
for TARGET in $TARGETS; do
179-
test_target build "$TARGET"
181+
if echo "$TARGET"|grep -q "$FILTER";then
182+
test_target build "$TARGET"
183+
fi
180184
done
181185

182186
# FIXME: https://github.com/rust-lang/rust/issues/58564
@@ -237,7 +241,9 @@ powerpc64-wrs-vxworks \
237241

238242
if [ "${RUST}" = "nightly" ] && [ "${OS}" = "linux" ]; then
239243
for TARGET in $RUST_LINUX_NO_CORE_TARGETS; do
240-
test_target xbuild "$TARGET" 1
244+
if echo "$TARGET"|grep -q "$FILTER";then
245+
test_target xbuild "$TARGET" 1
246+
fi
241247
done
242248

243249
# Nintendo switch

0 commit comments

Comments
 (0)