summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2025-02-06 17:49:18 +0700
committerGitHub <[email protected]>2025-02-06 17:49:18 +0700
commit9c093a30f479894cbd75e9b6590c28407c4748c3 (patch)
tree3bbfc94c95436ffd2a7bde343dc95c8923544e7b /.github/workflows
parent99b6e97080cc911b52e1d7b67d76c2b26cb27786 (diff)
parent7282572a56c774c1f523474c29965b321f6cc6c1 (diff)
Merge pull request #2981 from hathach/skip-iar-forked-pr
skip iar build for forked PR
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml1
-rw-r--r--.github/workflows/hil_test.yml3
2 files changed, 3 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 355b6b5c4..4c54efeaf 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -111,6 +111,7 @@ jobs:
# ---------------------------------------
# Build IAR on HFP self-hosted
+ # Since IAR Token secret is not passed to forked PR, only build on PR from the same repo
# ---------------------------------------
arm-iar:
if: github.repository_owner == 'hathach' && github.event_name == 'push'
diff --git a/.github/workflows/hil_test.yml b/.github/workflows/hil_test.yml
index 3f32bdb5d..6e9ba924b 100644
--- a/.github/workflows/hil_test.yml
+++ b/.github/workflows/hil_test.yml
@@ -90,9 +90,10 @@ jobs:
# ---------------------------------------
# Hardware in the loop (HIL)
# self-hosted by HFP, build with IAR toolchain, for attached hardware checkout test/hil/hfp.json
+ # Since IAR Token secret is not passed to forked PR, only build on PR from the same repo
# ---------------------------------------
hil-hfp:
- if: github.repository_owner == 'hathach'
+ if: github.repository_owner == 'hathach' && github.event.pull_request.head.repo.fork == false
runs-on: [self-hosted, Linux, X64, hifiphile]
env:
IAR_LMS_BEARER_TOKEN: ${{ secrets.IAR_LMS_BEARER_TOKEN }}