Skip to content

Commit ac8acc2

Browse files
committed
ci: Exclude C++ sample and test builds on non-Linux hosts
This commit updates the CI workflow such that Zephyr C++ samples and tests are only built on Linux hosts because there is a known issue causing the following link error using non-Linux toolchains: undefined reference to `_impure_ptr' Revert this when the GitHub issue #760 is fixed. Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
1 parent 0405c63 commit ac8acc2

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1588,12 +1588,18 @@ jobs:
15881588
# Generate test list
15891589
TEST_ARGS="
15901590
-T ${ZEPHYR_ROOT}/samples/hello_world
1591-
-T ${ZEPHYR_ROOT}/samples/cpp/hello_world
15921591
-T ${ZEPHYR_ROOT}/tests/lib/c_lib
1593-
-T ${ZEPHYR_ROOT}/tests/lib/cpp
15941592
-T ${ZEPHYR_ROOT}/tests/lib/newlib
15951593
"
15961594
1595+
# FIXME: Build C++ samples and tests only for Linux hosts because there
1596+
# is a known issue causing link failures on non-Linux hosts (see
1597+
# GitHub issue #760).
1598+
if [ "${{ runner.os }}" == "Linux" ]; then
1599+
TEST_ARGS+="-T ${ZEPHYR_ROOT}/samples/cpp/hello_world "
1600+
TEST_ARGS+="-T ${ZEPHYR_ROOT}/tests/lib/cpp "
1601+
fi
1602+
15971603
# Run tests with twister
15981604
TWISTER="${ZEPHYR_ROOT}/scripts/twister"
15991605
${TWISTER} -v -N -M --force-color --inline-logs --retry-failed 3 \

0 commit comments

Comments
 (0)