summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2025-12-05 20:12:45 +0700
committerGitHub <[email protected]>2025-12-05 20:12:45 +0700
commite73dfde96dcf59e6357d833adbe49c1cf716a1b3 (patch)
tree681f037cf5b1f410b248582868638301da692ec0 /.github/workflows
parent93b53158f02bce9497419298ac27150eebe567d3 (diff)
also render unchange table (#3390)
* also render unchange table * run metrics with circleci (full all boards build)
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml12
1 files changed, 5 insertions, 7 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index bc2fdac77..5017cb3cd 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -111,7 +111,7 @@ jobs:
path: metrics.json
- name: Download Base Branch Metrics
- if: github.event_name == 'pull_request'
+ if: github.event_name != 'push'
uses: dawidd6/action-download-artifact@v11
with:
workflow: build.yml
@@ -121,7 +121,7 @@ jobs:
continue-on-error: true
- name: Compare with Base Branch
- if: github.event_name == 'pull_request'
+ if: github.event_name != 'push'
run: |
if [ -f base-metrics/metrics.json ]; then
python tools/metrics.py compare -f tinyusb/src base-metrics/metrics.json metrics.json
@@ -132,7 +132,7 @@ jobs:
fi
- name: Post Code Metrics as PR Comment
- if: github.event_name == 'pull_request'
+ if: github.event_name != 'push'
uses: marocchino/sticky-pull-request-comment@v2
with:
header: code-metrics
@@ -203,9 +203,7 @@ jobs:
# self-hosted on local VM, for attached hardware checkout HIL_JSON
# ---------------------------------------
hil-tinyusb:
- if: |
- github.repository_owner == 'hathach' &&
- (github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch')
+ if: github.repository_owner == 'hathach' && github.event_name != 'push'
needs: hil-build
runs-on: [ self-hosted, X64, hathach, hardware-in-the-loop ]
steps:
@@ -249,7 +247,7 @@ jobs:
if: |
github.repository_owner == 'hathach' &&
github.event.pull_request.head.repo.fork == false &&
- (github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch')
+ github.event_name != 'push'
runs-on: [ self-hosted, Linux, X64, hifiphile ]
env:
IAR_LMS_BEARER_TOKEN: ${{ secrets.IAR_LMS_BEARER_TOKEN }}