tinyusb/.github/workflows/build_iar.yml

50 lines
1.2 KiB
YAML
Raw Normal View History

2023-01-18 10:33:26 +07:00
name: Build IAR
2023-01-17 16:30:33 +07:00
on:
push:
paths:
- 'src/**'
- 'examples/**'
- 'lib/**'
- 'hw/**'
2023-02-01 16:36:39 +07:00
- '.github/workflows/build_iar.yml'
2023-01-17 16:30:33 +07:00
pull_request:
branches: [ master ]
paths:
- 'src/**'
- 'examples/**'
- 'lib/**'
- 'hw/**'
2023-02-01 16:36:39 +07:00
- '.github/workflows/build_iar.yml'
2023-01-17 16:30:33 +07:00
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build-arm:
runs-on: [self-hosted, Linux, X64, hifiphile]
strategy:
fail-fast: false
matrix:
family:
# Alphabetical order
2023-02-01 19:29:37 +07:00
# 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-02-01 18:45:50 +07:00
- 'stm32f0 stm32f1 stm32f4 stm32f7 stm32g4 stm32h7 stm32l4'
2023-01-17 16:30:33 +07: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@v3
- name: Get Dependencies
run: python3 tools/get_family_deps.py ${{ matrix.family }}
2023-01-17 16:30:33 +07:00
- name: Build
2023-01-18 10:33:26 +07:00
run: python3 tools/build_family.py ${{ matrix.family }} CC=iccarm