build_esp.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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_addax_1'
  20. steps:
  21. - name: Setup Python
  22. uses: actions/setup-python@v2
  23. - name: Pull ESP-IDF docker
  24. run: docker pull espressif/idf:latest
  25. - name: Checkout TinyUSB
  26. uses: actions/checkout@v2
  27. - name: Checkout hathach/linkermap
  28. uses: actions/checkout@v2
  29. with:
  30. repository: hathach/linkermap
  31. path: linkermap
  32. - name: Build
  33. run: docker run --rm -v $PWD:/project -w /project espressif/idf:latest python3 tools/build_esp32sx.py ${{ matrix.board }}
  34. - name: Linker Map
  35. run: |
  36. pip install linkermap/
  37. for ex in `ls -d examples/device/*/`; do \
  38. find ${ex} -maxdepth 3 -name *.map -print -quit | \
  39. xargs -I % sh -c 'echo "::group::%"; linkermap -v %; echo "::endgroup::"'; \
  40. done