2021-02-06 10:34:25 +00:00
|
|
|
name: CI
|
|
|
|
|
2022-11-03 18:46:43 +00:00
|
|
|
on: [push, pull_request]
|
2021-02-06 10:34:25 +00:00
|
|
|
|
|
|
|
jobs:
|
2022-11-03 18:46:43 +00:00
|
|
|
CI:
|
2021-02-06 11:23:07 +00:00
|
|
|
runs-on: ubuntu-20.04
|
2021-02-06 10:34:25 +00:00
|
|
|
steps:
|
2022-05-03 15:05:36 +00:00
|
|
|
- name: 'Check out code'
|
2024-04-10 18:01:41 +00:00
|
|
|
uses: actions/checkout@v4
|
2021-02-06 10:34:25 +00:00
|
|
|
|
2022-05-03 15:05:36 +00:00
|
|
|
- name: 'Install dependencies'
|
2021-02-06 10:34:25 +00:00
|
|
|
run: |
|
|
|
|
sudo apt-get install cmake gcc-arm-none-eabi libnewlib-arm-none-eabi
|
|
|
|
|
2022-05-03 15:05:36 +00:00
|
|
|
- name: 'Update Submodules'
|
|
|
|
run: |
|
|
|
|
git submodule sync --recursive
|
|
|
|
git submodule update --init --recursive
|
|
|
|
|
|
|
|
- name: 'Configure'
|
|
|
|
run: |
|
|
|
|
mkdir -p build
|
|
|
|
cmake -B build
|
|
|
|
|
|
|
|
- name: 'Build'
|
2021-02-06 10:34:25 +00:00
|
|
|
run: |
|
2022-05-03 15:05:36 +00:00
|
|
|
make -C build
|
2021-02-06 10:34:25 +00:00
|
|
|
|
2022-05-03 15:05:36 +00:00
|
|
|
- name: 'Upload binary'
|
2024-04-10 18:02:38 +00:00
|
|
|
uses: actions/upload-artifact@v4
|
2021-02-06 10:34:25 +00:00
|
|
|
with:
|
|
|
|
name: pico-uart-bridge.uf2
|
|
|
|
path: build/uart_bridge.uf2
|
|
|
|
retention-days: 5
|