mirror of
https://github.com/danbee/unicorn
synced 2026-06-20 22:52:22 +00:00
CI: Build with unique output directories.
A pitfall of caching the MicroPython directory is that the cache is uploaded *after* builds have completed, leaving behind build artifacts that can break things.
This commit is contained in:
parent
28a05b57d5
commit
46a730d1de
4
.github/workflows/micropython.yml
vendored
4
.github/workflows/micropython.yml
vendored
@ -133,14 +133,14 @@ jobs:
|
||||
shell: bash
|
||||
working-directory: micropython/ports/rp2
|
||||
run: |
|
||||
cmake -S . -B build -DPICO_BUILD_DOCS=0 -DUSER_C_MODULES=${{env.BOARD_DIR}}/micropython.cmake -DMICROPY_BOARD_DIR=${{env.BOARD_DIR}} -DMICROPY_BOARD=${{env.BOARD}} -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
|
||||
cmake -S . -B build-${{matrix.shortname}} -DPICO_BUILD_DOCS=0 -DUSER_C_MODULES=${{env.BOARD_DIR}}/micropython.cmake -DMICROPY_BOARD_DIR=${{env.BOARD_DIR}} -DMICROPY_BOARD=${{env.BOARD}} -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
|
||||
|
||||
- name: Build MicroPython
|
||||
shell: bash
|
||||
working-directory: micropython/ports/rp2
|
||||
run: |
|
||||
ccache --zero-stats || true
|
||||
cmake --build build -j 2
|
||||
cmake --build build-${{matrix.shortname}} -j 1
|
||||
ccache --show-stats || true
|
||||
|
||||
- name: Rename .uf2 for artifact
|
||||
|
||||
Loading…
Reference in New Issue
Block a user