2023-01-18 04:33:26 +01:00
|
|
|
name: Build IAR
|
2023-01-17 10:30:33 +01:00
|
|
|
|
|
|
|
on:
|
2023-05-25 11:53:32 +02:00
|
|
|
workflow_dispatch:
|
2023-01-17 10:30:33 +01:00
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- 'src/**'
|
|
|
|
- 'examples/**'
|
|
|
|
- 'lib/**'
|
|
|
|
- 'hw/**'
|
2023-12-18 14:07:17 +01:00
|
|
|
- 'tools/get_deps.py'
|
2023-02-01 10:36:39 +01:00
|
|
|
- '.github/workflows/build_iar.yml'
|
2023-01-17 10:30:33 +01:00
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
paths:
|
|
|
|
- 'src/**'
|
|
|
|
- 'examples/**'
|
|
|
|
- 'lib/**'
|
|
|
|
- 'hw/**'
|
2023-12-18 14:07:17 +01:00
|
|
|
- 'tools/get_deps.py'
|
2023-02-01 10:36:39 +01:00
|
|
|
- '.github/workflows/build_iar.yml'
|
2023-01-17 10:30:33 +01:00
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
jobs:
|
2023-06-02 11:11:00 +02:00
|
|
|
cmake:
|
|
|
|
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.
|
2023-12-11 09:56:48 +01:00
|
|
|
- 'lpc43 stm32f0 stm32f1 stm32f7 stm32g0 stm32g4 stm32l4'
|
2023-06-02 11:11:00 +02:00
|
|
|
steps:
|
|
|
|
- name: Clean workspace
|
|
|
|
run: |
|
|
|
|
echo "Cleaning up previous run"
|
|
|
|
rm -rf "${{ github.workspace }}"
|
|
|
|
mkdir -p "${{ github.workspace }}"
|
|
|
|
|
|
|
|
- name: Checkout TinyUSB
|
2023-12-18 14:07:17 +01:00
|
|
|
uses: actions/checkout@v4
|
2023-06-02 11:11:00 +02:00
|
|
|
|
|
|
|
- name: Get Dependencies
|
|
|
|
run: python3 tools/get_deps.py ${{ matrix.family }}
|
|
|
|
|
|
|
|
- name: Build
|
2023-06-24 19:05:23 +02:00
|
|
|
run: python3 tools/build_cmake.py ${{ matrix.family }} -DTOOLCHAIN=iar -DCMAKE_BUILD_TYPE=MinSizeRel
|
2023-06-25 04:55:05 +02:00
|
|
|
|
2023-08-09 13:46:23 +02:00
|
|
|
- name: Test on actual hardware (hardware in the loop)
|
2023-06-25 05:15:05 +02:00
|
|
|
run: |
|
2023-08-09 14:03:56 +02:00
|
|
|
python3 test/hil/hil_test.py hil_hfp.json
|