passkey_fw/.github/workflows/build_iar.yml

60 lines
1.6 KiB
YAML
Raw Normal View History

2023-01-18 04:33:26 +01:00
name: Build IAR
2023-01-17 10:30:33 +01:00
on:
workflow_dispatch:
2023-01-17 10:30:33 +01:00
push:
paths:
- 'src/**'
- 'examples/**'
- 'lib/**'
- 'hw/**'
- 'tools/get_deps.py'
- 'test/hil/**'
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/**'
- 'tools/get_deps.py'
- 'test/hil/**'
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:
if: github.repository_owner == 'hathach'
2023-06-02 11:11:00 +02:00
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'
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
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
run: python3 tools/build_cmake.py ${{ matrix.family }} -DTOOLCHAIN=iar -DCMAKE_BUILD_TYPE=MinSizeRel
- 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