mirror of
https://github.com/hathach/tinyusb.git
synced 2026-03-09 00:54:36 +00:00
* add name field to usbd_class_driver_t * ci: use set matrix py script * add riscv32 and cmake support for ch32v307, fomu, gd32vf103 * update build_cmake.py to take --family --board --toolchain * separate hil test to its own workflow * move esp32 board into separated hil json * add make build to ci * remov build_make.py * build.py support esp32 board * setup toolchain support esp-idf * fix missing click * merge family in matrix build to reduce jobs * skip cifuzz since it still has issue with get_deps and click
60 lines
1.5 KiB
YAML
60 lines
1.5 KiB
YAML
name: Build IAR
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
paths:
|
|
- 'src/**'
|
|
- 'examples/**'
|
|
- 'lib/**'
|
|
- 'hw/**'
|
|
- 'tools/get_deps.py'
|
|
- 'test/hil/**'
|
|
- '.github/workflows/build_iar.yml'
|
|
pull_request:
|
|
branches: [ master ]
|
|
paths:
|
|
- 'src/**'
|
|
- 'examples/**'
|
|
- 'lib/**'
|
|
- 'hw/**'
|
|
- 'tools/get_deps.py'
|
|
- 'test/hil/**'
|
|
- '.github/workflows/build_iar.yml'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
cmake:
|
|
if: github.repository_owner == 'hathach'
|
|
runs-on: [self-hosted, Linux, X64, hifiphile]
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
family:
|
|
# Alphabetical order
|
|
# Note: bundle multiple families into a matrix since there is only one self-hosted instance can
|
|
# run IAR build. Too many matrix can hurt due to setup/teardown overhead.
|
|
- 'lpc43 stm32f0 stm32f1 stm32f7 stm32g0 stm32g4 stm32l4'
|
|
steps:
|
|
- name: Clean workspace
|
|
run: |
|
|
echo "Cleaning up previous run"
|
|
rm -rf "${{ github.workspace }}"
|
|
mkdir -p "${{ github.workspace }}"
|
|
|
|
- name: Checkout TinyUSB
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Get Dependencies
|
|
run: python3 tools/get_deps.py ${{ matrix.family }}
|
|
|
|
- name: Build
|
|
run: python3 tools/build.py --toolchain iar ${{ matrix.family }}
|
|
|
|
- name: Test on actual hardware (hardware in the loop)
|
|
run: |
|
|
python3 test/hil/hil_test.py hfp.json
|