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'
|
|
|
|
uses: actions/checkout@v3
|
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'
|
|
|
|
uses: actions/upload-artifact@v3
|
2021-02-06 10:34:25 +00:00
|
|
|
with:
|
|
|
|
name: pico-uart-bridge.uf2
|
|
|
|
path: build/uart_bridge.uf2
|
|
|
|
retention-days: 5
|