From 982b071d6cfac4af3d2da9c9028a1ade7b433342 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Date: Tue, 3 May 2022 17:05:36 +0200 Subject: [PATCH] github: update CI workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Álvaro Fernández Rojas --- .github/workflows/ci.yml | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a489cef..739e317 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,27 +4,34 @@ on: - push - pull_request -env: - DEFAULT_PYTHON: 3.9 - jobs: pico: name: RPi Pico compilation runs-on: ubuntu-20.04 steps: - - name: Check out code from GitHub - uses: actions/checkout@v2 + - name: 'Check out code' + uses: actions/checkout@v3 - - name: Install dependencies + - name: 'Install dependencies' run: | sudo apt-get install cmake gcc-arm-none-eabi libnewlib-arm-none-eabi - - name: Generate RPi Pico binaries + - name: 'Update Submodules' run: | - ./build.sh + git submodule sync --recursive + git submodule update --init --recursive - - name: 'Upload RPi Pico binary' - uses: actions/upload-artifact@v2 + - name: 'Configure' + run: | + mkdir -p build + cmake -B build + + - name: 'Build' + run: | + make -C build + + - name: 'Upload binary' + uses: actions/upload-artifact@v3 with: name: pico-uart-bridge.uf2 path: build/uart_bridge.uf2