mirror of
https://github.com/micropython/micropython.git
synced 2025-12-15 17:30:14 +01:00
Includes a base variant with LAN, and C5_WIFI and C6_WIFI variants with LAN, WiFi and BLE. And builds this board in the esp32 CI, to cover the P4 support. Signed-off-by: Vincent1-python <pywei201209@163.com> Signed-off-by: Angus Gratton <angus@redyak.com.au> Signed-off-by: Damien George <damien@micropython.org>
64 lines
1.6 KiB
YAML
64 lines
1.6 KiB
YAML
name: esp32 port
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
paths:
|
|
- '.github/workflows/*.yml'
|
|
- 'tools/**'
|
|
- 'py/**'
|
|
- 'extmod/**'
|
|
- 'shared/**'
|
|
- 'lib/**'
|
|
- 'drivers/**'
|
|
- 'ports/esp32/**'
|
|
schedule:
|
|
# Scheduled run exists to keep master branch ESP-IDF cache entry hot
|
|
# and prevent creating many redundant per-branch cache entries instead.
|
|
- cron: "20 0 * * *"
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build_idf:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
ci_func: # names are functions in ci.sh
|
|
- esp32_build_cmod_spiram_s2
|
|
- esp32_build_s3_c3
|
|
- esp32_build_c2_c5_c6
|
|
- esp32_build_p4
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
|
|
- id: idf_ver
|
|
name: Read the ESP-IDF version (including Python version)
|
|
run: source tools/ci.sh && echo "IDF_VER=${IDF_VER}-py${PYTHON_VER}" | tee "$GITHUB_OUTPUT"
|
|
|
|
- name: Cached ESP-IDF install
|
|
id: cache_esp_idf
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: |
|
|
./esp-idf/
|
|
~/.espressif/
|
|
!~/.espressif/dist/
|
|
~/.cache/pip/
|
|
key: esp-idf-${{ steps.idf_ver.outputs.IDF_VER }}
|
|
|
|
- name: Install ESP-IDF packages
|
|
if: steps.cache_esp_idf.outputs.cache-hit != 'true'
|
|
run: tools/ci.sh esp32_idf_setup
|
|
|
|
- name: ccache
|
|
uses: hendrikmuhs/ccache-action@v1.2
|
|
with:
|
|
key: esp32-${{ matrix.ci_func }}
|
|
|
|
- name: Build ci_${{matrix.ci_func }}
|
|
run: tools/ci.sh ${{ matrix.ci_func }}
|