summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorhathach <[email protected]>2025-04-17 16:07:10 +0700
committerhathach <[email protected]>2025-04-17 16:07:10 +0700
commit3851c7c97a2a743b63d879ab622dd267b4195f08 (patch)
tree5fce1287f143e69e1033d41fc4c65c4edf3d9202 /.github/workflows
parent9eb0ae7636d816545696575837c3bcb4a93029d4 (diff)
- run arm-iar using github action
- add skip_ci.txt to family folder to skip boards in ci run
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml62
-rw-r--r--.github/workflows/build_util.yml2
2 files changed, 41 insertions, 23 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index f42499ef7..6419efbe8 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -110,35 +110,51 @@ jobs:
one-per-family: true
# ---------------------------------------
- # Build IAR on HFP self-hosted
+ # Build IAR
# 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'
needs: set-matrix
- runs-on: [self-hosted, Linux, X64, hifiphile]
- env:
- BUILD_ARGS: ${{ join(fromJSON(needs.set-matrix.outputs.json)['arm-iar'], ' ') }}
- IAR_LMS_BEARER_TOKEN: ${{ secrets.IAR_LMS_BEARER_TOKEN }}
- steps:
- - name: Clean workspace
- run: |
- echo "Cleaning up previous run"
- rm -rf "${{ github.workspace }}"
- mkdir -p "${{ github.workspace }}"
-
- - name: Toolchain version
- run: |
- iccarm --version
-
- - name: Checkout TinyUSB
- uses: actions/checkout@v4
-
- - name: Get Dependencies
- run: python3 tools/get_deps.py $BUILD_ARGS
+ uses: ./.github/workflows/build_util.yml
+ secrets: inherit
+ strategy:
+ fail-fast: false
+ matrix:
+ build-system:
+ - 'cmake'
+ with:
+ build-system: ${{ matrix.build-system }}
+ toolchain: 'arm-iar'
+ build-args: ${{ toJSON(fromJSON(needs.set-matrix.outputs.json)['arm-iar']) }}
+ one-per-family: ${{ github.event_name == 'push' }}
- - name: Build
- run: python3 tools/build.py --one-per-family --toolchain iar $BUILD_ARGS
+# arm-iar:
+# if: github.repository_owner == 'hathach' && github.event_name == 'push'
+# needs: set-matrix
+# runs-on: [self-hosted, Linux, X64, hifiphile]
+# env:
+# BUILD_ARGS: ${{ join(fromJSON(needs.set-matrix.outputs.json)['arm-iar'], ' ') }}
+# IAR_LMS_BEARER_TOKEN: ${{ secrets.IAR_LMS_BEARER_TOKEN }}
+# steps:
+# - name: Clean workspace
+# run: |
+# echo "Cleaning up previous run"
+# rm -rf "${{ github.workspace }}"
+# mkdir -p "${{ github.workspace }}"
+#
+# - name: Toolchain version
+# run: |
+# iccarm --version
+#
+# - name: Checkout TinyUSB
+# uses: actions/checkout@v4
+#
+# - name: Get Dependencies
+# run: python3 tools/get_deps.py $BUILD_ARGS
+#
+# - name: Build
+# run: python3 tools/build.py --one-per-family --toolchain iar $BUILD_ARGS
# ---------------------------------------
# Zephyr
diff --git a/.github/workflows/build_util.yml b/.github/workflows/build_util.yml
index 2de68c6f3..a2c96f3c0 100644
--- a/.github/workflows/build_util.yml
+++ b/.github/workflows/build_util.yml
@@ -58,6 +58,8 @@ jobs:
shell: bash
- name: Build
+ env:
+ IAR_LMS_BEARER_TOKEN: ${{ secrets.IAR_LMS_BEARER_TOKEN }}
run: |
if [ "${{ inputs.toolchain }}" == "esp-idf" ]; then
docker run --rm -v $PWD:/project -w /project espressif/idf:tinyusb python tools/build.py ${{ matrix.arg }}