kopia lustrzana https://github.com/micropython/micropython
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
rodzic
731a1f5233
commit
527c4b0497
|
@ -48,5 +48,10 @@ jobs:
|
||||||
if: steps.cache_esp_idf.outputs.cache-hit != 'true'
|
if: steps.cache_esp_idf.outputs.cache-hit != 'true'
|
||||||
run: source tools/ci.sh && ci_esp32_idf_setup
|
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 }}
|
- name: Build ci_${{matrix.ci_func }}
|
||||||
run: source tools/ci.sh && ci_${{ matrix.ci_func }}
|
run: source tools/ci.sh && ci_${{ matrix.ci_func }}
|
||||||
|
|
|
@ -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)
|
# GitHub tag of ESP-IDF to use for CI (note: must be a tag or a branch)
|
||||||
IDF_VER=v5.0.2
|
IDF_VER=v5.0.2
|
||||||
|
|
||||||
|
export IDF_CCACHE_ENABLE=1
|
||||||
|
|
||||||
function ci_esp32_idf_setup {
|
function ci_esp32_idf_setup {
|
||||||
pip3 install pyelftools
|
pip3 install pyelftools
|
||||||
git clone --depth 1 --branch $IDF_VER https://github.com/espressif/esp-idf.git
|
git clone --depth 1 --branch $IDF_VER https://github.com/espressif/esp-idf.git
|
||||||
|
|
Ładowanie…
Reference in New Issue