add build ci for xiao_esp32c5 #20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build MicroPython Firmware for Seeed Xiao Esp32c5 | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| release: | |
| types: [ created ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout MicroPython | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: 'recursive' | |
| - name: Clone ESP-IDF | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install git wget flex bison gperf python3 python3-pip python3-venv cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0 | |
| sudo port install python313 | |
| mkdir -p ~/esp | |
| cd ~/esp | |
| git clone --recursive https://github.com/espressif/esp-idf.git | |
| cd ~/esp/esp-idf | |
| export IDF_GITHUB_ASSETS="dl.espressif.com/github_assets" | |
| ./install.sh esp32c5 | |
| echo "XXXXXXXX---------xxxxxxx" | |
| . ./export.sh | |
| which riscv32-esp-elf-g++ | |
| - name: Build ESP32-C5 firmware | |
| run: | | |
| . ~/esp-idf/export.sh | |
| cd lib/micropython | |
| gh pr checkout 17912 | |
| make -C mpy-cross | |
| cd ports/esp32 | |
| rm -rf build-ESP32_GENERIC | |
| make BOARD=SEEED_XIAO_ESP32C5 | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| - name: Upload firmware | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: esp32c5-firmware | |
| path: ports/esp32/build-SEEED_XIAO_ESP32C5/firmware.bin |