ci: build samples/cpp/hello_world as part of the multiplatform test

Build the C++ version of the Hello, World sample as part of the
multiplatform (build) test in CI.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
Henrik Brix Andersen 2024-09-18 08:20:04 +00:00 committed by Carles Cufí
parent 01872642f4
commit cd543887f4

View file

@ -69,7 +69,7 @@ jobs:
elif [ "${{ runner.os }}" = "Windows" ]; then elif [ "${{ runner.os }}" = "Windows" ]; then
EXTRA_TWISTER_FLAGS="-P native_sim --short-build-path -O/tmp/twister-out" EXTRA_TWISTER_FLAGS="-P native_sim --short-build-path -O/tmp/twister-out"
fi fi
./scripts/twister --force-color --inline-logs -T samples/hello_world -v $EXTRA_TWISTER_FLAGS ./scripts/twister --force-color --inline-logs -T samples/hello_world -T samples/cpp/hello_world -v $EXTRA_TWISTER_FLAGS
- name: Upload artifacts - name: Upload artifacts
if: failure() if: failure()
@ -78,3 +78,4 @@ jobs:
if-no-files-found: ignore if-no-files-found: ignore
path: path:
zephyr/twister-out/*/samples/hello_world/sample.basic.helloworld/build.log zephyr/twister-out/*/samples/hello_world/sample.basic.helloworld/build.log
zephyr/twister-out/*/samples/cpp/hello_world/sample.cpp.helloworld/build.log