build_esp.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. name: Build ESP
  2. on:
  3. pull_request:
  4. push:
  5. release:
  6. types:
  7. - created
  8. jobs:
  9. build-esp:
  10. runs-on: ubuntu-latest
  11. strategy:
  12. fail-fast: false
  13. matrix:
  14. board:
  15. # Alphabetical order
  16. # ESP32-S2
  17. - 'espressif_saola_1'
  18. # ESP32-S3
  19. #- 'espressif_s3_devkitm'
  20. # S3 compile error with "dangerous relocation: call8: call target out of range: memcpy"
  21. steps:
  22. - name: Setup Python
  23. uses: actions/setup-python@v2
  24. - name: Pull ESP-IDF docker
  25. run: docker pull espressif/idf:latest
  26. - name: Checkout TinyUSB
  27. uses: actions/checkout@v3
  28. - name: Checkout hathach/linkermap
  29. uses: actions/checkout@v3
  30. with:
  31. repository: hathach/linkermap
  32. path: linkermap
  33. - name: Build
  34. run: docker run --rm -v $PWD:/project -w /project espressif/idf:latest python3 tools/build_esp32sx.py ${{ matrix.board }}
  35. - name: Linker Map
  36. run: |
  37. pip install linkermap/
  38. for ex in `ls -d examples/device/*/`; do \
  39. find ${ex} -maxdepth 3 -name *.map -print -quit | \
  40. xargs -I % sh -c 'echo "::group::%"; linkermap -v %; echo "::endgroup::"'; \
  41. done