summaryrefslogtreecommitdiff
path: root/.github/workflows/build_util.yml
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2024-05-13 20:27:49 +0700
committerGitHub <[email protected]>2024-05-13 20:27:49 +0700
commit7cf1bdd2848d6c36e9659acaf77c83a1fa99d04f (patch)
tree4d0bcaf1854512f19420c6e208985350c522379e /.github/workflows/build_util.yml
parent6f47746e5ff6e33b25e12742d62bcbf69f8a27a0 (diff)
Ci tweak3 (#2643)
- enable --one-per-family to build 1 board per family, also skip family if board specified in -b also present - minimize ci run for push event - only build one board per family - skip hil test on both pi4 and hfp - full build will be runn for PR event - IAR always build 1 board per family regardless of event - update build.py to optimize make - remove all setup python since we don't really need it
Diffstat (limited to '.github/workflows/build_util.yml')
-rw-r--r--.github/workflows/build_util.yml21
1 files changed, 15 insertions, 6 deletions
diff --git a/.github/workflows/build_util.yml b/.github/workflows/build_util.yml
index f8ad1900c..49a9feabd 100644
--- a/.github/workflows/build_util.yml
+++ b/.github/workflows/build_util.yml
@@ -15,6 +15,10 @@ on:
build-args:
required: true
type: string
+ one-per-family:
+ required: false
+ default: false
+ type: boolean
os:
required: false
type: string
@@ -31,11 +35,6 @@ jobs:
- name: Checkout TinyUSB
uses: actions/checkout@v4
- - name: Setup Python
- uses: actions/setup-python@v5
- with:
- python-version: '3.x'
-
- name: Setup Toolchain
id: setup-toolchain
uses: ./.github/actions/setup_toolchain
@@ -48,10 +47,20 @@ jobs:
with:
arg: ${{ matrix.arg }}
+ - name: Set build one-per-family option
+ id: set-one-per-family
+ run: |
+ if [[ "${{ inputs.one-per-family }}" == "true" ]]; then
+ BUILD_OPTION="--one-per-family"
+ fi
+ echo "build_option=$BUILD_OPTION"
+ echo "build_option=$BUILD_OPTION" >> $GITHUB_OUTPUT
+ shell: bash
+
- name: Build
if: inputs.toolchain != 'esp-idf'
run: |
- python tools/build.py -s ${{ inputs.build-system }} ${{ steps.setup-toolchain.outputs.build_option }} ${{ matrix.arg }}
+ python tools/build.py -s ${{ inputs.build-system }} ${{ steps.setup-toolchain.outputs.build_option }} ${{ steps.set-one-per-family.outputs.build_option }} ${{ matrix.arg }}
- name: Build using ESP-IDF docker
if: inputs.toolchain == 'esp-idf'