-
Notifications
You must be signed in to change notification settings - Fork 8
98 lines (75 loc) · 2.55 KB
/
build.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
name: build
on:
push:
branches:
- main
- 'issue/*'
pull_request:
branches:
- main
- 'issue/*'
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
build_libcyphal_demo:
name: Build LibCyphal demo
runs-on: ubuntu-latest
strategy:
matrix:
build_type: [Release, Debug]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: get nunavut
run: >
pip install git+https://github.com/OpenCyphal/[email protected]
- name: Configure CMake
run: cmake -B ${{github.workspace}}/libcyphal_demo/build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} ${{github.workspace}}/libcyphal_demo
- name: Build
run: cmake --build ${{github.workspace}}/libcyphal_demo/build --config ${{matrix.build_type}}
build_libudpard_demo:
name: Build LibUDPard demo
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: get nunavut
run: >
pip install nunavut
- name: Configure CMake
run: cmake -B ${{github.workspace}}/libudpard_demo/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} ${{github.workspace}}/libudpard_demo
- name: Build
run: cmake --build ${{github.workspace}}/libudpard_demo/build --config ${{env.BUILD_TYPE}}
build_differential_pressure_sensor:
if: false
name: Build Differential Pressure Sensor demo
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: get nunavut
run: >
pip install nunavut
- name: Configure CMake
run: cmake -B ${{github.workspace}}/differential_pressure_sensor/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} ${{github.workspace}}/differential_pressure_sensor
- name: Build
run: cmake --build ${{github.workspace}}/differential_pressure_sensor/build --config ${{env.BUILD_TYPE}}
build_udral_servo:
if: false
name: Build UDRAL Servo demo
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: get nunavut
run: >
pip install nunavut
- name: Configure CMake
run: cmake -B ${{github.workspace}}/udral_servo/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} ${{github.workspace}}/udral_servo
- name: Build
run: cmake --build ${{github.workspace}}/udral_servo/build --config ${{env.BUILD_TYPE}}