github/workflows: Enable ccache for esp32 build.

CCaches are scoped per-job.

Uses https://github.com/hendrikmuhs/ccache-action to get desired behaviour
(updating the cache on each run).

Signed-off-by: Angus Gratton <angus@redyak.com.au>
pull/13090/head
Angus Gratton 2023-11-29 16:43:28 +11:00 zatwierdzone przez Damien George
rodzic 731a1f5233
commit 527c4b0497
2 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -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 }}

Wyświetl plik

@ -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