Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions .github/workflows/twister.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ on:
- macos-aarch64
- windows-x86_64
default: linux-x86_64
zephyr-remote:
description: 'Zephyr Remote'
required: true
default: 'https://github.com/zephyrproject-rtos/zephyr.git'
zephyr-ref:
description: 'Zephyr Ref (branch, tag, SHA ...)'
required: true
Expand All @@ -44,7 +48,7 @@ on:
twister-extra-args:
description: 'Twister Extra Arguments'
required: true
default: '--build-only --show-footprint'
default: '--show-footprint'
subset-count:
description: 'Subset Count'
required: false
Expand Down Expand Up @@ -342,7 +346,7 @@ jobs:

# Check out specified Zephyr ref
pushd zephyr
git fetch origin ${{ github.event.inputs.zephyr-ref }}
git fetch ${{ github.event.inputs.zephyr-remote }} ${{ github.event.inputs.zephyr-ref }}
git checkout FETCH_HEAD
popd

Expand Down Expand Up @@ -382,6 +386,11 @@ jobs:
fi

# Set mode-specific parameters
if [ "${{ github.event.inputs.twister-mode }}" == "integration" ]; then
MODE_ARGS+="--integration -j 16"
elif [ "${{ github.event.inputs.twister-mode }}" == "all" ]; then
MODE_ARGS+="--all --build-only -j 32"
fi

# Set toolchain variant
export ZEPHYR_TOOLCHAIN_VARIANT="zephyr/${{ github.event.inputs.sdk-toolchain }}"
Expand All @@ -393,7 +402,6 @@ jobs:
-v \
-N \
-M \
-j 16 \
--force-color \
--inline-logs \
--retry-failed 3 \
Expand All @@ -403,6 +411,7 @@ jobs:
-P native_sim/native \
-P native_sim/native/64 \
${HOST_ARGS} \
${MODE_ARGS} \
${{ github.event.inputs.twister-extra-args }}

- name: Print ccache stats
Expand Down
Loading