github: update CI workflow

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
This commit is contained in:
Álvaro Fernández Rojas 2022-05-03 17:05:36 +02:00
parent a7d61bb4c8
commit 982b071d6c

View file

@ -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