From 46a730d1de88a8c17d131b878921285ff648597b Mon Sep 17 00:00:00 2001 From: Phil Howard Date: Tue, 9 May 2023 12:04:36 +0100 Subject: [PATCH] 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. --- .github/workflows/micropython.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/micropython.yml b/.github/workflows/micropython.yml index 939d3fe..96792cc 100644 --- a/.github/workflows/micropython.yml +++ b/.github/workflows/micropython.yml @@ -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