CI: Grab only necessary modules.

Reduces the MicroPython cache from ~879MB down to ~187MB for a reduction of around 6,920MB across builds.
pull/764/head
Phil Howard 2023-04-28 11:39:14 +01:00 zatwierdzone przez Phil Howard
rodzic 56dba370c6
commit dd4347dac3
1 zmienionych plików z 11 dodań i 11 usunięć

Wyświetl plik

@ -19,9 +19,9 @@ jobs:
uses: actions/cache@v3
with:
path: ${{runner.workspace}}
key: workspace-micropython-${{env.MICROPYTHON_VERSION}}-with-libs
key: workspace-micropython-${{env.MICROPYTHON_VERSION}}-pico
restore-keys: |
workspace-micropython-${{env.MICROPYTHON_VERSION}}-with-libs
workspace-micropython-${{env.MICROPYTHON_VERSION}}-pico
# Check out MicroPython
- name: Checkout MicroPython
@ -41,17 +41,17 @@ jobs:
repository: micropython/micropython-lib
path: micropython-lib
- name: Fetch base MicroPython submodules
- name: Fetch Pico submodules
if: steps.cache.outputs.cache-hit != 'true'
shell: bash
working-directory: micropython
run: git submodule update --init
- name: Fetch Pico SDK submodules
if: steps.cache.outputs.cache-hit != 'true'
shell: bash
working-directory: micropython/lib/pico-sdk
run: git submodule update --init
working-directory: micropython/ports/rp2
run: |
git submodule update --init ../../lib/pico-sdk
git submodule update --init ../../lib/cyw43-driver
git submodule update --init ../../lib/lwip
git submodule update --init ../../lib/mbedtls
git submodule update --init ../../lib/micropython-lib
git submodule update --init ../../lib/tinyusb
- name: Build mpy-cross
if: steps.cache.outputs.cache-hit != 'true'