2021-05-26 12:12:26 +02:00
|
|
|
name: Build ESP
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2022-12-08 03:44:26 +01:00
|
|
|
paths:
|
2022-12-08 05:47:01 +01:00
|
|
|
- 'src/**'
|
|
|
|
- 'examples/**'
|
|
|
|
- 'lib/**'
|
2022-12-08 05:48:53 +01:00
|
|
|
- 'hw/**'
|
2023-02-01 10:36:39 +01:00
|
|
|
- '.github/workflows/build_esp.yml'
|
2022-12-08 03:44:26 +01:00
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
paths:
|
2022-12-08 05:47:01 +01:00
|
|
|
- 'src/**'
|
|
|
|
- 'examples/**'
|
|
|
|
- 'lib/**'
|
|
|
|
- 'hw/**'
|
2023-02-01 10:36:39 +01:00
|
|
|
- '.github/workflows/build_esp.yml'
|
2021-05-26 12:12:26 +02:00
|
|
|
|
2022-12-04 15:08:47 +01:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2021-05-26 12:12:26 +02:00
|
|
|
jobs:
|
|
|
|
build-esp:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
board:
|
|
|
|
# Alphabetical order
|
|
|
|
# ESP32-S2
|
|
|
|
- 'espressif_saola_1'
|
|
|
|
# ESP32-S3
|
2021-12-20 18:04:50 +01:00
|
|
|
#- 'espressif_s3_devkitm'
|
2021-12-02 06:02:25 +01:00
|
|
|
# S3 compile error with "dangerous relocation: call8: call target out of range: memcpy"
|
2021-05-26 12:12:26 +02: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-05-26 12:12:26 +02:00
|
|
|
|
|
|
|
- name: Pull ESP-IDF docker
|
|
|
|
run: docker pull espressif/idf:latest
|
|
|
|
|
|
|
|
- name: Checkout TinyUSB
|
2022-04-24 17:49:29 +02:00
|
|
|
uses: actions/checkout@v3
|
2021-05-26 12:12:26 +02: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
|
|
|
|
|
2021-05-26 12:12:26 +02:00
|
|
|
- name: Build
|
2023-04-03 12:44:05 +02:00
|
|
|
run: docker run --rm -v $PWD:/project -w /project espressif/idf:latest python3 tools/build_esp32.py ${{ matrix.board }}
|
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/device/*/`
|
|
|
|
do
|
|
|
|
find ${ex} -maxdepth 3 -name *.map -print -quit | xargs -I % sh -c 'echo "::group::%"; linkermap -v %; echo "::endgroup::"'
|
2021-10-12 19:57:45 +02:00
|
|
|
done
|