diff --git a/.github/workflows/twister.yml b/.github/workflows/twister.yml index aff5bcb8..1e29d919 100644 --- a/.github/workflows/twister.yml +++ b/.github/workflows/twister.yml @@ -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 @@ -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 @@ -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 @@ -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 }}" @@ -393,7 +402,6 @@ jobs: -v \ -N \ -M \ - -j 16 \ --force-color \ --inline-logs \ --retry-failed 3 \ @@ -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