2020-11-29 07:05:45 +00:00
|
|
|
name: esp32 port
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- '.github/workflows/*.yml'
|
|
|
|
- 'tools/**'
|
|
|
|
- 'py/**'
|
|
|
|
- 'extmod/**'
|
2023-02-17 01:33:13 +00:00
|
|
|
- 'shared/**'
|
2020-11-29 07:05:45 +00:00
|
|
|
- 'lib/**'
|
|
|
|
- 'drivers/**'
|
|
|
|
- 'ports/esp32/**'
|
|
|
|
|
2022-12-13 18:57:34 +00:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2020-11-29 07:05:45 +00:00
|
|
|
jobs:
|
2023-11-29 04:39:10 +00:00
|
|
|
build_idf:
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
ci_func: # names are functions in ci.sh
|
2023-12-04 23:34:20 +00:00
|
|
|
- esp32_build_cmod_spiram_s2
|
2023-11-29 04:39:10 +00:00
|
|
|
- esp32_build_s3_c3
|
2020-11-29 07:05:45 +00:00
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
2023-09-04 19:42:14 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-11-29 03:26:12 +00:00
|
|
|
|
|
|
|
- id: idf_ver
|
|
|
|
name: Read the ESP-IDF version
|
|
|
|
run: source tools/ci.sh && echo "IDF_VER=$IDF_VER" | tee "$GITHUB_OUTPUT"
|
|
|
|
|
|
|
|
- name: Cached ESP-IDF install
|
|
|
|
id: cache_esp_idf
|
2024-01-17 19:06:41 +00:00
|
|
|
uses: actions/cache@v4
|
2023-11-29 03:26:12 +00:00
|
|
|
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: source tools/ci.sh && ci_esp32_idf_setup
|
|
|
|
|
2023-11-29 05:43:28 +00:00
|
|
|
- name: ccache
|
|
|
|
uses: hendrikmuhs/ccache-action@v1.2
|
|
|
|
with:
|
|
|
|
key: esp32-${{ matrix.ci_func }}
|
|
|
|
|
2023-11-29 04:39:10 +00:00
|
|
|
- name: Build ci_${{matrix.ci_func }}
|
|
|
|
run: source tools/ci.sh && ci_${{ matrix.ci_func }}
|