Skip to content

Commit

Permalink
Update arch.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lupyuen authored Oct 17, 2024
1 parent 770c25b commit 7ec2669
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/arch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,15 +133,6 @@ jobs:
boards=$( echo '${{ inputs.boards }}' | jq --compact-output ".")
numboards=$( echo "$boards" | jq "length" )
# Exclude arm-08 to arm-14
boards=$(
echo '${{ inputs.boards }}' |
jq --compact-output 'map(select(test("arm-0[8-9]") == false and test("arm-1.+") == false))'
)
numboards=$( echo "$boards" | jq "length" )
echo boards=$boards
echo numboards=$numboards
# We consider only Simple PRs with:
# Arch + Size Labels Only
# Board + Size Labels Only
Expand Down Expand Up @@ -175,6 +166,15 @@ 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
pr=${{github.event.pull_request.number}}
if [[ "$pr" != "" ]]; then
echo "Excluding arm-08 to arm-14"
boards=$(
echo '${{ inputs.boards }}' |
jq --compact-output 'map(select(test("arm-0[8-9]") == false and test("arm-1.+") == false))'
)
fi
echo "selected_builds=$boards" | tee -a $GITHUB_OUTPUT
exit
fi
Expand Down

0 comments on commit 7ec2669

Please sign in to comment.