kopia lustrzana https://github.com/pimoroni/pimoroni-pico
CI: Do not regen workspace cache
rodzic
fccdbd28af
commit
8e8ac885e2
|
@ -14,8 +14,19 @@ jobs:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
name: Dependencies
|
name: Dependencies
|
||||||
steps:
|
steps:
|
||||||
|
- name: Workspace Cache
|
||||||
|
id: cache
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: ${{runner.workspace}}
|
||||||
|
key: workspace-micropython-${{github.ref}}-${{github.sha}}
|
||||||
|
restore-keys: |
|
||||||
|
workspace-${{github.ref}}
|
||||||
|
workspace-micropython-
|
||||||
|
|
||||||
# Check out MicroPython
|
# Check out MicroPython
|
||||||
- name: Checkout MicroPython
|
- name: Checkout MicroPython
|
||||||
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
repository: micropython/micropython
|
repository: micropython/micropython
|
||||||
|
@ -24,39 +35,35 @@ jobs:
|
||||||
path: micropython
|
path: micropython
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
path: pimoroni-pico-${{ github.sha }}
|
path: pimoroni-pico-${{ github.sha }}
|
||||||
|
|
||||||
# Copy Python module files
|
# Copy Python module files
|
||||||
- name: Copy modules
|
- name: Copy modules
|
||||||
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
cp -r pimoroni-pico-${GITHUB_SHA}/micropython/modules_py/* micropython/ports/rp2/modules/
|
cp -r pimoroni-pico-${GITHUB_SHA}/micropython/modules_py/* micropython/ports/rp2/modules/
|
||||||
|
|
||||||
- name: Fetch base MicroPython submodules
|
- name: Fetch base MicroPython submodules
|
||||||
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
shell: bash
|
shell: bash
|
||||||
working-directory: micropython
|
working-directory: micropython
|
||||||
run: git submodule update --init
|
run: git submodule update --init
|
||||||
|
|
||||||
- name: Fetch Pico SDK submodules
|
- name: Fetch Pico SDK submodules
|
||||||
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
shell: bash
|
shell: bash
|
||||||
working-directory: micropython/lib/pico-sdk
|
working-directory: micropython/lib/pico-sdk
|
||||||
run: git submodule update --init
|
run: git submodule update --init
|
||||||
|
|
||||||
- name: Build mpy-cross
|
- name: Build mpy-cross
|
||||||
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
shell: bash
|
shell: bash
|
||||||
working-directory: micropython/mpy-cross
|
working-directory: micropython/mpy-cross
|
||||||
run: make
|
run: make
|
||||||
|
|
||||||
- name: Cache
|
|
||||||
uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: ${{runner.workspace}}
|
|
||||||
key: workspace-micropython-${{github.ref}}-${{github.sha}}
|
|
||||||
restore-keys: |
|
|
||||||
workspace-${{github.ref}}
|
|
||||||
workspace-micropython-
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
needs: deps
|
needs: deps
|
||||||
name: Build ${{matrix.board}}
|
name: Build ${{matrix.board}}
|
||||||
|
|
Ładowanie…
Reference in New Issue