build_esp.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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@v4
  24. with:
  25. python-version: '3.x'
  26. - name: Pull ESP-IDF docker
  27. run: docker pull espressif/idf:latest
  28. - name: Checkout TinyUSB
  29. uses: actions/checkout@v3
  30. - name: Checkout hathach/linkermap
  31. uses: actions/checkout@v3
  32. with:
  33. repository: hathach/linkermap
  34. path: linkermap
  35. - name: Build
  36. run: docker run --rm -v $PWD:/project -w /project espressif/idf:latest python3 tools/build_esp32sx.py ${{ matrix.board }}
  37. - name: Linker Map
  38. run: |
  39. pip install linkermap/
  40. # find -quit to only print linkermap of 1 board per example
  41. for ex in `ls -d examples/device/*/`
  42. do
  43. find ${ex} -maxdepth 3 -name *.map -print -quit | xargs -I % sh -c 'echo "::group::%"; linkermap -v %; echo "::endgroup::"'
  44. done