From 9053786c02c114885b68f30eb29d9a8122409585 Mon Sep 17 00:00:00 2001 From: jgromes Date: Sat, 27 Jan 2024 14:03:58 +0100 Subject: [PATCH] Added RPi Pico build to CI --- .github/workflows/main.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6a03953a..9c202119 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -261,3 +261,27 @@ jobs: ./clean.sh ./build.sh sudo ./build/rpi-sx1261 + + rpi-pico-build: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Install dependencies + run: | + sudo apt update + sudo apt install git cmake gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib + + - name: Clone the SDK + run: | + mkdir -p ~/rpi-pico + cd ~/rpi-pico + git clone https://github.com/raspberrypi/pico-sdk.git + cd pico-sdk && git checkout 1.5.1 + export PICO_SDK_PATH=~/rpi-pico/pico-sdk + + - name: Build the example + run: | + cd $PWD/examples/NonArduino/Pico + ./build.sh