diff --git a/.github/workflows/ports_esp32.yml b/.github/workflows/ports_esp32.yml index 9c8a8998a2..c1eedf18a9 100644 --- a/.github/workflows/ports_esp32.yml +++ b/.github/workflows/ports_esp32.yml @@ -48,5 +48,10 @@ jobs: if: steps.cache_esp_idf.outputs.cache-hit != 'true' run: source tools/ci.sh && ci_esp32_idf_setup + - name: ccache + uses: hendrikmuhs/ccache-action@v1.2 + with: + key: esp32-${{ matrix.ci_func }} + - name: Build ci_${{matrix.ci_func }} run: source tools/ci.sh && ci_${{ matrix.ci_func }} diff --git a/tools/ci.sh b/tools/ci.sh index 23fa389094..60cd0be6c5 100755 --- a/tools/ci.sh +++ b/tools/ci.sh @@ -121,6 +121,8 @@ function ci_cc3200_build { # GitHub tag of ESP-IDF to use for CI (note: must be a tag or a branch) IDF_VER=v5.0.2 +export IDF_CCACHE_ENABLE=1 + function ci_esp32_idf_setup { pip3 install pyelftools git clone --depth 1 --branch $IDF_VER https://github.com/espressif/esp-idf.git