From 7ec2669c1183efa7b895651ae2e54799c8229c8f Mon Sep 17 00:00:00 2001 From: Lup Yuen Lee Date: Thu, 17 Oct 2024 15:12:56 +0800 Subject: [PATCH] Update arch.yml --- .github/workflows/arch.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/arch.yml b/.github/workflows/arch.yml index dcde007de268f..203b3905a0f8c 100644 --- a/.github/workflows/arch.yml +++ b/.github/workflows/arch.yml @@ -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 @@ -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