summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2026-02-06 18:08:26 +0700
committerGitHub <[email protected]>2026-02-06 18:08:26 +0700
commitbe5e23453565d9ccc578f08af52ab86ce4cef0be (patch)
treea5230914b4d9cb2869d711cea400f5649cd778e2 /.github
parentcdf7499a653bd96d1d4dc27ac93d3534ea70aaf8 (diff)
parent3cef022737e4529c1ae709e4061c1530a849c07b (diff)
Merge pull request #3483 from hathach/skip-some-ci
Skip Zephyr and Membrowse comment temporarily
Diffstat (limited to '.github')
-rw-r--r--.github/pull_request_template.md5
-rw-r--r--.github/workflows/build.yml101
2 files changed, 35 insertions, 71 deletions
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md
deleted file mode 100644
index aa148eb79..000000000
--- a/.github/pull_request_template.md
+++ /dev/null
@@ -1,5 +0,0 @@
-**Describe the PR**
-A clear and concise description of what this PR solve.
-
-**Additional context**
-If applicable, add any other context about the PR and/or screenshots here.
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index e0c1d0a14..ded4e816c 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -4,9 +4,33 @@ on:
workflow_dispatch:
push:
branches: [master]
+ paths:
+ - 'src/**'
+ - 'examples/**'
+ - 'lib/**'
+ - 'hw/**'
+ - 'tools/build.py'
+ - 'tools/get_deps.py'
+ - '.github/actions/**'
+ - '.github/workflows/build.yml'
+ - '.github/workflows/build_util.yml'
+ - '.github/workflows/ci_set_matrix.py'
pull_request:
+ paths:
+ - 'src/**'
+ - 'examples/**'
+ - 'lib/**'
+ - 'hw/**'
+ - 'test/hil/**'
+ - 'tools/build.py'
+ - 'tools/get_deps.py'
+ - '.github/actions/**'
+ - '.github/workflows/build.yml'
+ - '.github/workflows/build_util.yml'
+ - '.github/workflows/ci_set_matrix.py'
release:
types: [ published ]
+
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
@@ -15,44 +39,7 @@ env:
HIL_JSON: test/hil/tinyusb.json
jobs:
- # Check if code paths changed (skip builds if doc-only)
- check-paths:
- if: github.event_name == 'pull_request' || github.event_name == 'push'
- runs-on: ubuntu-latest
- permissions:
- contents: read
- pull-requests: read
- outputs:
- code_changed: ${{ steps.filter.outputs.code }}
- steps:
- - uses: actions/checkout@v6
- with:
- fetch-depth: 2 # Needed for push commit comparison
- - uses: dorny/paths-filter@v3
- id: filter
- with:
- filters: |
- code:
- - 'src/**'
- - 'examples/**'
- - 'lib/**'
- - 'hw/**'
- - 'test/hil/**'
- - 'tools/build.py'
- - 'tools/get_deps.py'
- - '.github/actions/**'
- - '.github/workflows/build.yml'
- - '.github/workflows/build_util.yml'
- - '.github/workflows/ci_set_matrix.py'
-
set-matrix:
- needs: [check-paths]
- if: |
- always() && (
- github.event_name == 'release' ||
- github.event_name == 'workflow_dispatch' ||
- needs.check-paths.outputs.code_changed == 'true'
- )
runs-on: ubuntu-latest
outputs:
json: ${{ steps.set-matrix-json.outputs.matrix }}
@@ -197,8 +184,6 @@ jobs:
# Build Make/CMake on Windows/MacOS
# ---------------------------------------
build-os:
- needs: [check-paths]
- if: needs.check-paths.outputs.code_changed == 'true'
uses: ./.github/workflows/build_util.yml
strategy:
fail-fast: false
@@ -215,8 +200,8 @@ jobs:
# Zephyr
# ---------------------------------------
zephyr:
- needs: [check-paths]
- if: needs.check-paths.outputs.code_changed == 'true'
+ # skip zephyr build due to failed build, fix later
+ if: false
runs-on: ubuntu-latest
steps:
- name: Checkout TinyUSB
@@ -238,10 +223,8 @@ jobs:
# Run on PR only (hil-tinyusb), hil-hfp only run on non-forked PR
# ---------------------------------------
hil-build:
- needs: [check-paths, set-matrix]
- if: |
- github.repository_owner == 'hathach' &&
- (github.event_name == 'workflow_dispatch' || needs.check-paths.outputs.code_changed == 'true')
+ needs: set-matrix
+ if: github.repository_owner == 'hathach'
uses: ./.github/workflows/build_util.yml
strategy:
fail-fast: false
@@ -260,10 +243,7 @@ jobs:
# self-hosted on local VM, for attached hardware checkout HIL_JSON
# ---------------------------------------
hil-tinyusb:
- needs: [check-paths, hil-build]
- if: |
- github.repository_owner == 'hathach' &&
- (github.event_name == 'release' || github.event_name == 'workflow_dispatch' || needs.check-paths.outputs.code_changed == 'true')
+ needs: hil-build
runs-on: [ self-hosted, X64, hathach, hardware-in-the-loop ]
steps:
- name: Get Skip Boards from previous run
@@ -303,11 +283,9 @@ jobs:
# Since IAR Token secret is not passed to forked PR, only build non-forked PR
# ---------------------------------------
hil-hfp:
- needs: [check-paths]
if: |
github.repository_owner == 'hathach' &&
- github.event.pull_request.head.repo.fork == false &&
- (github.event_name == 'release' || github.event_name == 'workflow_dispatch' || needs.check-paths.outputs.code_changed == 'true')
+ !(github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == true)
runs-on: [ self-hosted, Linux, X64, hifiphile ]
env:
IAR_LMS_BEARER_TOKEN: ${{ secrets.IAR_LMS_BEARER_TOKEN }}
@@ -347,28 +325,19 @@ jobs:
# PR: only runs if code changed (doc-only PRs skip entirely)
# ---------------------------------------
membrowse:
- needs: [check-paths, cmake]
- if: |
- always() && !cancelled() && (
- github.event_name == 'push' ||
- github.event_name == 'release' ||
- github.event_name == 'workflow_dispatch' ||
- (github.event_name == 'pull_request' && needs.check-paths.outputs.code_changed == 'true')
- )
+ needs: cmake
permissions:
contents: read
actions: read
uses: ./.github/workflows/membrowse-report.yml
with:
- code_changed: ${{ needs.check-paths.outputs.code_changed == 'true' || github.event_name == 'release' || github.event_name == 'workflow_dispatch' }}
+ code_changed: true
secrets: inherit
membrowse-comment:
- needs: [check-paths, membrowse]
- if: >
- always() &&
- github.event_name == 'pull_request' &&
- needs.check-paths.outputs.code_changed == 'true'
+ needs: membrowse
+ # skip membrowse comment since it is too verbal
+ if: false && github.event_name == 'pull_request'
runs-on: ubuntu-latest
permissions:
contents: read