From cb3556504a6bf496853fbaf43cd36c1dde89e009 Mon Sep 17 00:00:00 2001 From: Silabs-ThieuVu <65759766+Silabs-ThieuVu@users.noreply.github.com> Date: Fri, 29 Nov 2024 12:10:00 +0700 Subject: [PATCH] Update 02-Run_Unit_Test.yaml --- .github/workflows/02-Run_Unit_Test.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/02-Run_Unit_Test.yaml b/.github/workflows/02-Run_Unit_Test.yaml index 20df593..e00f3c6 100644 --- a/.github/workflows/02-Run_Unit_Test.yaml +++ b/.github/workflows/02-Run_Unit_Test.yaml @@ -293,7 +293,6 @@ jobs: fi echo "Current PATH:" echo $PATH | tr ':' '\n' - echo "compiler=$COMPILER" >> $GITHUB_OUTPUT echo "Generate MG12 image" cd ${{ github.workspace }} if [ "$COMPILER" == "IAR" ]; then @@ -384,7 +383,6 @@ jobs: name: Run unit test runs-on: ${{ inputs.RUNNER_EXECUTE || 'DS_SQA_HN_01' }} needs: job1 - if: ${{ needs.job1.outputs.compiler == 'GCC' }} permissions: contents: read pull-requests: write @@ -392,6 +390,10 @@ jobs: steps: - name: Trigger run: | + if [ "$COMPILER" == "IAR" ]; then + echo "Run with IAR in job1" + exit 0 + fi echo "Triggered by ${{github.event_name}} event" echo "Repo root directory: $GITHUB_WORKSPACE" echo "Current directory: $PWD"