2021-05-26 12:12:26 +02:00
|
|
|
name: Build ARM
|
2019-12-27 10:34:25 +01:00
|
|
|
|
2021-01-26 16:34:29 +01:00
|
|
|
on:
|
2023-05-25 11:53:32 +02:00
|
|
|
workflow_dispatch:
|
2021-01-26 16:34:29 +01:00
|
|
|
push:
|
2022-12-08 03:30:42 +01:00
|
|
|
paths:
|
2022-12-08 05:47:01 +01:00
|
|
|
- 'src/**'
|
|
|
|
- 'examples/**'
|
|
|
|
- 'lib/**'
|
|
|
|
- 'hw/**'
|
2023-02-01 09:14:35 +01:00
|
|
|
- '.github/workflows/build_arm.yml'
|
2022-12-08 03:30:42 +01:00
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
2022-12-08 03:44:26 +01:00
|
|
|
paths:
|
2022-12-08 05:47:01 +01:00
|
|
|
- 'src/**'
|
|
|
|
- 'examples/**'
|
|
|
|
- 'lib/**'
|
|
|
|
- 'hw/**'
|
2023-02-01 09:14:35 +01:00
|
|
|
- '.github/workflows/build_arm.yml'
|
2019-12-27 14:58:37 +01:00
|
|
|
|
2022-12-04 14:29:24 +01:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
|
|
cancel-in-progress: true
|
2019-12-27 14:58:37 +01:00
|
|
|
|
2019-12-27 10:34:25 +01:00
|
|
|
jobs:
|
2021-03-02 06:24:12 +01:00
|
|
|
# ---------------------------------------
|
|
|
|
# Build ARM family
|
|
|
|
# ---------------------------------------
|
|
|
|
build-arm:
|
2021-01-23 12:32:56 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
family:
|
2021-01-26 16:34:29 +01:00
|
|
|
# Alphabetical order
|
2022-01-05 23:11:39 +01:00
|
|
|
- 'broadcom_32bit'
|
2023-06-24 18:36:52 +02:00
|
|
|
- 'kinetis_k32l2'
|
2023-05-26 11:37:47 +02:00
|
|
|
- 'lpc11 lpc13 lpc15 lpc17'
|
2023-06-24 18:36:52 +02:00
|
|
|
- 'lpc51 lpc54'
|
2023-03-08 06:28:30 +01:00
|
|
|
- 'mm32 msp432e4'
|
2021-01-23 12:32:56 +01:00
|
|
|
- 'nrf'
|
2022-03-09 13:58:15 +01:00
|
|
|
- 'ra'
|
2023-03-19 07:11:41 +01:00
|
|
|
- 'samd11 samd21'
|
|
|
|
- 'samd51 same5x'
|
2021-06-28 09:37:41 +02:00
|
|
|
- 'saml2x'
|
2023-06-24 18:32:24 +02:00
|
|
|
- 'stm32f2 stm32f3'
|
2021-01-23 12:32:56 +01:00
|
|
|
- 'stm32f4'
|
2023-06-24 18:32:24 +02:00
|
|
|
- 'stm32l0 stm32u5 stm32wb'
|
2023-03-08 06:28:30 +01:00
|
|
|
- 'tm4c123 xmc4000'
|
2021-01-23 12:32:56 +01:00
|
|
|
steps:
|
|
|
|
- name: Setup Python
|
2022-11-06 09:17:00 +01:00
|
|
|
uses: actions/setup-python@v4
|
2022-11-06 16:06:22 +01:00
|
|
|
with:
|
|
|
|
python-version: '3.x'
|
2021-01-23 12:32:56 +01:00
|
|
|
|
2022-07-01 11:24:58 +02:00
|
|
|
- name: Install ARM GCC
|
|
|
|
uses: carlosperate/arm-none-eabi-gcc-action@v1
|
|
|
|
with:
|
|
|
|
release: '11.2-2022.02'
|
2021-01-23 12:32:56 +01:00
|
|
|
|
|
|
|
- name: Checkout TinyUSB
|
2022-04-24 17:49:29 +02:00
|
|
|
uses: actions/checkout@v3
|
2021-01-23 12:32:56 +01:00
|
|
|
|
2021-10-12 19:57:45 +02:00
|
|
|
- name: Checkout hathach/linkermap
|
2022-04-24 17:49:29 +02:00
|
|
|
uses: actions/checkout@v3
|
2021-10-12 19:57:45 +02:00
|
|
|
with:
|
|
|
|
repository: hathach/linkermap
|
|
|
|
path: linkermap
|
|
|
|
|
2022-07-01 11:24:58 +02:00
|
|
|
- name: Get Dependencies
|
2023-05-26 10:25:55 +02:00
|
|
|
run: python3 tools/get_deps.py ${{ matrix.family }}
|
2021-03-04 14:22:16 +01:00
|
|
|
|
2021-01-23 12:32:56 +01:00
|
|
|
- name: Build
|
|
|
|
run: python3 tools/build_family.py ${{ matrix.family }}
|
|
|
|
|
2021-10-12 19:57:45 +02:00
|
|
|
- name: Linker Map
|
|
|
|
run: |
|
|
|
|
pip install linkermap/
|
2022-11-06 08:56:05 +01:00
|
|
|
# find -quit to only print linkermap of 1 board per example
|
|
|
|
for ex in `ls -d examples/*/*/`
|
|
|
|
do
|
|
|
|
find ${ex} -name *.map -print -quit | xargs -I % sh -c 'echo "::group::%"; linkermap -v %; echo "::endgroup::"'
|
2021-10-12 19:57:45 +02:00
|
|
|
done
|