1
0
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:
Phil Howard 2023-05-09 12:04:36 +01:00
parent 28a05b57d5
commit 46a730d1de

View File

@ -133,14 +133,14 @@ jobs:
shell: bash shell: bash
working-directory: micropython/ports/rp2 working-directory: micropython/ports/rp2
run: | 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 - name: Build MicroPython
shell: bash shell: bash
working-directory: micropython/ports/rp2 working-directory: micropython/ports/rp2
run: | run: |
ccache --zero-stats || true ccache --zero-stats || true
cmake --build build -j 2 cmake --build build-${{matrix.shortname}} -j 1
ccache --show-stats || true ccache --show-stats || true
- name: Rename .uf2 for artifact - name: Rename .uf2 for artifact