2021-05-26 17:12:26 +07:00
|
|
|
name: Build ARM
|
2019-12-27 16:34:25 +07:00
|
|
|
|
2021-01-26 22:34:29 +07:00
|
|
|
on:
|
2023-05-25 16:53:32 +07:00
|
|
|
workflow_dispatch:
|
2021-01-26 22:34:29 +07:00
|
|
|
push:
|
2022-12-08 09:30:42 +07:00
|
|
|
paths:
|
2022-12-08 11:47:01 +07:00
|
|
|
- 'src/**'
|
|
|
|
- 'examples/**'
|
|
|
|
- 'lib/**'
|
|
|
|
- 'hw/**'
|
2023-12-18 20:07:17 +07:00
|
|
|
- 'tools/get_deps.py'
|
2023-02-01 15:14:35 +07:00
|
|
|
- '.github/workflows/build_arm.yml'
|
2022-12-08 09:30:42 +07:00
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
2022-12-08 09:44:26 +07:00
|
|
|
paths:
|
2022-12-08 11:47:01 +07:00
|
|
|
- 'src/**'
|
|
|
|
- 'examples/**'
|
|
|
|
- 'lib/**'
|
|
|
|
- 'hw/**'
|
2023-12-18 20:07:17 +07:00
|
|
|
- 'tools/get_deps.py'
|
2023-02-01 15:14:35 +07:00
|
|
|
- '.github/workflows/build_arm.yml'
|
2019-12-27 20:58:37 +07:00
|
|
|
|
2022-12-04 20:29:24 +07:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
|
|
cancel-in-progress: true
|
2019-12-27 20:58:37 +07:00
|
|
|
|
2019-12-27 16:34:25 +07:00
|
|
|
jobs:
|
2021-03-02 12:24:12 +07:00
|
|
|
# ---------------------------------------
|
|
|
|
# Build ARM family
|
|
|
|
# ---------------------------------------
|
|
|
|
build-arm:
|
2021-01-23 18:32:56 +07:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
family:
|
2021-01-26 22:34:29 +07:00
|
|
|
# Alphabetical order
|
2022-01-05 14:11:39 -08:00
|
|
|
- 'broadcom_32bit'
|
2023-06-24 23:36:52 +07:00
|
|
|
- 'kinetis_k32l2'
|
2024-01-11 16:52:18 +07:00
|
|
|
- 'lpc11 lpc13 lpc15'
|
2023-09-27 16:19:39 +07:00
|
|
|
- 'lpc51'
|
2023-03-08 12:28:30 +07:00
|
|
|
- 'mm32 msp432e4'
|
2023-09-07 16:58:40 +07:00
|
|
|
- 'samd11 same5x saml2x'
|
2023-06-24 23:32:24 +07:00
|
|
|
- 'stm32f2 stm32f3'
|
2023-09-19 18:33:59 +07:00
|
|
|
- 'stm32l0 stm32wb'
|
2023-03-08 12:28:30 +07:00
|
|
|
- 'tm4c123 xmc4000'
|
2021-01-23 18:32:56 +07:00
|
|
|
steps:
|
|
|
|
- name: Setup Python
|
2024-01-25 19:13:11 +07:00
|
|
|
uses: actions/setup-python@v5
|
2022-11-06 22:06:22 +07:00
|
|
|
with:
|
|
|
|
python-version: '3.x'
|
2021-01-23 18:32:56 +07:00
|
|
|
|
2022-07-01 16:24:58 +07:00
|
|
|
- name: Install ARM GCC
|
|
|
|
uses: carlosperate/arm-none-eabi-gcc-action@v1
|
|
|
|
with:
|
|
|
|
release: '11.2-2022.02'
|
2021-01-23 18:32:56 +07:00
|
|
|
|
|
|
|
- name: Checkout TinyUSB
|
2023-12-18 20:07:17 +07:00
|
|
|
uses: actions/checkout@v4
|
2021-10-13 00:57:45 +07:00
|
|
|
|
2022-07-01 16:24:58 +07:00
|
|
|
- name: Get Dependencies
|
2023-05-26 15:25:55 +07:00
|
|
|
run: python3 tools/get_deps.py ${{ matrix.family }}
|
2021-03-04 20:22:16 +07:00
|
|
|
|
2021-01-23 18:32:56 +07:00
|
|
|
- name: Build
|
2023-11-23 11:46:39 +07:00
|
|
|
run: python3 tools/build_make.py ${{ matrix.family }}
|