From 83e7ee5bfb3923fcbbf094135431e6b5e7a463f9 Mon Sep 17 00:00:00 2001 From: Maciej Kobus Date: Mon, 16 Dec 2024 20:01:47 +0000 Subject: [PATCH] Fix CI build script --- .github/workflows/10-build.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/10-build.yml b/.github/workflows/10-build.yml index 69002fd..7083706 100644 --- a/.github/workflows/10-build.yml +++ b/.github/workflows/10-build.yml @@ -73,19 +73,26 @@ jobs: exit 1 fi + - name: Create build directory + run: | + mkdir -p ${{github.workspace}}/build/${{matrix.build_dir}} + - name: Build and run Dev Container task uses: devcontainers/ci@v0.3 with: imageName: ghcr.io/webhdx/picoboot cacheFrom: ghcr.io/webhdx/picoboot runCmd: | + unset PICO_PLATFORM + unset PICO_BOARD + cmake -B ${{github.workspace}}/build/${{matrix.build_dir}} -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DPICO_PLATFORM=${{matrix.platform}} -DPICO_BOARD=${{matrix.board}} cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE . make - name: Upload artifacts uses: actions/upload-artifact@v4 with: - name: picoboot-${{ steps.vars.outputs.sha_short }} + name: picoboot-${{matrix.platform}}-${{matrix.board}}-${{ steps.vars.outputs.sha_short }} path: | picoboot_full.uf2 picoboot.uf2