Skip to content

Commit c23dd22

Browse files
committed
ci: twister: Implement twister mode support
This commit implements the support for the `twister-mode` workflow input. For `integration` mode, the "integration" tests are built and run. For `all` mode, all tests are built only (i.e. not run). Signed-off-by: Stephanos Ioannidis <[email protected]>
1 parent 24b3a8c commit c23dd22

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/twister.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ on:
4848
twister-extra-args:
4949
description: 'Twister Extra Arguments'
5050
required: true
51-
default: '--build-only --show-footprint'
51+
default: '--show-footprint'
5252
subset-count:
5353
description: 'Subset Count'
5454
required: false
@@ -386,6 +386,11 @@ jobs:
386386
fi
387387
388388
# Set mode-specific parameters
389+
if [ "${{ github.event.inputs.twister-mode }}" == "integration" ]; then
390+
MODE_ARGS+="--integration -j 16"
391+
elif [ "${{ github.event.inputs.twister-mode }}" == "all" ]; then
392+
MODE_ARGS+="--all --build-only -j 32"
393+
fi
389394
390395
# Set toolchain variant
391396
export ZEPHYR_TOOLCHAIN_VARIANT="zephyr/${{ github.event.inputs.sdk-toolchain }}"
@@ -397,7 +402,6 @@ jobs:
397402
-v \
398403
-N \
399404
-M \
400-
-j 16 \
401405
--force-color \
402406
--inline-logs \
403407
--retry-failed 3 \
@@ -407,6 +411,7 @@ jobs:
407411
-P native_sim/native \
408412
-P native_sim/native/64 \
409413
${HOST_ARGS} \
414+
${MODE_ARGS} \
410415
${{ github.event.inputs.twister-extra-args }}
411416
412417
- name: Print ccache stats

0 commit comments

Comments
 (0)