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