2023-01-18 04:33:26 +01:00
|
|
|
name: Build IAR
|
2023-01-17 10:30:33 +01:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- 'src/**'
|
|
|
|
- 'examples/**'
|
|
|
|
- 'lib/**'
|
|
|
|
- 'hw/**'
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
paths:
|
|
|
|
- 'src/**'
|
|
|
|
- 'examples/**'
|
|
|
|
- 'lib/**'
|
|
|
|
- 'hw/**'
|
|
|
|
|
|
|
|
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
|
|
|
|
- 'stm32f0'
|
2023-01-21 05:32:37 +01:00
|
|
|
- 'stm32f1'
|
2023-01-22 06:10:27 +01:00
|
|
|
- 'stm32f4'
|
|
|
|
- 'stm32f7'
|
2023-01-30 11:07:06 +01:00
|
|
|
- 'stm32g4'
|
2023-01-30 11:04:39 +01:00
|
|
|
- 'stm32h7'
|
2023-01-17 10:30:33 +01: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: Checkout submodules and dependencies
|
|
|
|
run: |
|
|
|
|
git submodule update --init lib/FreeRTOS-Kernel lib/lwip lib/sct_neopixel
|
|
|
|
python3 tools/get_dependencies.py ${{ matrix.family }}
|
|
|
|
|
|
|
|
- name: Checkout pico-sdk for rp2040
|
|
|
|
if: matrix.family == 'rp2040'
|
|
|
|
run: |
|
|
|
|
git clone --depth 1 -b develop https://github.com/raspberrypi/pico-sdk ~/pico-sdk
|
|
|
|
echo >> $GITHUB_ENV PICO_SDK_PATH=~/pico-sdk
|
|
|
|
|
|
|
|
- name: Build
|
2023-01-18 04:33:26 +01:00
|
|
|
run: python3 tools/build_family.py ${{ matrix.family }} CC=iccarm
|