From 7f8226a3a187fce4092183aec4983ce715c88e5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Date: Sat, 6 Feb 2021 11:34:25 +0100 Subject: [PATCH] github: add CI 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 | 31 +++++++++++++++++++++++++++++++ .gitmodules | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..a68e126 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: CI + +on: + - push + - pull_request + +env: + DEFAULT_PYTHON: 3.9 + +jobs: + pico: + name: Raspberry Pi Pico compilation + runs-on: ubuntu-latest + steps: + - name: Check out code from GitHub + uses: actions/checkout@v2 + + - name: Install dependencies + run: | + sudo apt-get install cmake gcc-arm-none-eabi libnewlib-arm-none-eabi + + - name: Generate RPi Pico binaries + run: | + ./build.sh + + - name: 'Upload RPi Pico binary' + uses: actions/upload-artifact@v2 + with: + name: pico-uart-bridge.uf2 + path: build/uart_bridge.uf2 + retention-days: 5 diff --git a/.gitmodules b/.gitmodules index 6d38f34..7733770 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "pico-sdk"] path = pico-sdk - url = git@github.com:raspberrypi/pico-sdk.git + url = https://github.com/raspberrypi/pico-sdk.git