-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (44 loc) · 1.22 KB
/
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
43
44
45
46
47
48
49
name: CI
on:
pull_request:
branches:
- '**'
workflow_dispatch:
inputs:
name:
description: "Manual trigger"
schedule:
- cron: '0 2 * * *'
jobs:
Build:
runs-on: ubuntu-latest
container:
image: ubuntu:22.04
steps:
- name: Git
run: |
apt update
apt install -y git
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
clean: true
path: repo
- name: Deps
run: |
apt update
apt install -y python3 python3-pip git build-essential cmake rsync gcc-arm-none-eabi
pip3 install catkin_pkg lark-parser colcon-common-extensions
- name: Build
run: |
cd repo
export REPO_DIR=$(pwd)
MICROROS_TARGET=GENERIC_ARM ./build_micro_ros_library.sh
export TOOLCHAIN_PREFIX=arm-none-eabi-
cd .github/sample_ci_project
mkdir build
cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE=$REPO_DIR/toolchain.cmake
make -j$(nproc)