forked from lukicdarkoo/pico-micro-ros
-
Notifications
You must be signed in to change notification settings - Fork 59
executable file
·42 lines (36 loc) · 995 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: CI
on:
workflow_dispatch:
inputs:
name:
description: "Manual trigger"
schedule:
- cron: '0 4 * * *'
pull_request:
branches:
- '**'
jobs:
micro_ros_raspberrypi_pico_sdk:
runs-on: ubuntu-latest
container: ubuntu:jammy
steps:
- uses: actions/checkout@v2
with:
path: micro_ros_raspberrypi_pico_sdk
- name: Dependencies
shell: bash
run: |
apt update
export DEBIAN_FRONTEND=noninteractive
apt install -y g++ gcc-arm-none-eabi doxygen libnewlib-arm-none-eabi git python3 cmake
git clone --recurse-submodules https://github.com/raspberrypi/pico-sdk.git $HOME/pico-sdk
- name: Build
shell: bash
run: |
export PICO_SDK_PATH=$HOME/pico-sdk
cd micro_ros_raspberrypi_pico_sdk
mkdir build
cd build
cmake ..
make
(test -f pico_micro_ros_example.uf2) && true || false