mirror of
https://github.com/Noltari/pico-uart-bridge.git
synced 2024-12-28 02:06:06 +00:00
github: update CI workflow
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
This commit is contained in:
parent
a7d61bb4c8
commit
982b071d6c
27
.github/workflows/ci.yml
vendored
27
.github/workflows/ci.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue