Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Skip half of RISC-V, Xtensa and Simulator targets when a Complex PR is created / updated #14400

Merged
merged 1 commit into from
Oct 18, 2024
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
16 changes: 12 additions & 4 deletions .github/workflows/arch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,21 @@ jobs:

# If Not a Simple PR: Build all targets
if [[ "$quit" == "1" ]]; then
# If PR was Created or Modified: Exclude arm-08 to arm-14
# If PR was Created or Modified: Exclude some boards
pr=${{github.event.pull_request.number}}
if [[ "$pr" != "" ]]; then
echo "Excluding arm-08 to arm-14"
boards=$(
echo "Excluding arm-08..14, risc-v-04..06, sim-02, xtensa-02"
boards=$(
echo '${{ inputs.boards }}' |
jq --compact-output 'map(select(test("arm-0[8-9]") == false and test("arm-1.+") == false))'
jq --compact-output \
'map(
select(
test("arm-0[8-9]") == false and test("arm-1.") == false and
test("risc-v-0[4-9]") == false and
test("sim-0[2-9]") == false and
test("xtensa-0[2-9]") == false
)
)'
)
fi
echo "selected_builds=$boards" | tee -a $GITHUB_OUTPUT
Expand Down
Loading