forked from OpenHD/OpenHD
-
Notifications
You must be signed in to change notification settings - Fork 0
100 lines (89 loc) · 3.66 KB
/
ubuntu22_build_test.yml
File metadata and controls
100 lines (89 loc) · 3.66 KB
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
99
100
name: ubuntu22_build_test
# NOTE: This test only checks if the code in the repository builds under ubuntu x86 (dependencies installed)
# Which is - simply put - the most basic test. If this test fails, there is something wrong with the code.
#⠀⠀⠀⠀⠀⠀⢀⣀⣀⣀⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⣀⣀⠀⠀⠀⠀⠀
#⠀⠀⠀⠀⠀⠀⣾⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⠀⠀⠀⠀⢀⠀⠈⡇⠀⠀⠀⠀
#⠀⠀⠀⠀⠀⠀⣿⠀⠁⠀⠘⠁⠀⠀⠀⠀⠀⣀⡀⠀⠀⠀⠈⠀⠀⡇⠀⠀⠀⠀
#⣀⣀⣀⠀⠀⠀⣿⠀⠀⠀⠀⠀⠄⠀⠀⠸⢰⡏⠉⠳⣄⠰⠀⠀⢰⣷⠶⠛⣧⠀
#⢻⡀⠈⠙⠲⡄⣿⠀⠀⠀⠀⠀⠀⠀⠠⠀⢸⠀⠀⠀⠈⠓⠒⠒⠛⠁⠀⠀⣿⠀
#⠀⠻⣄⠀⠀⠙⣿⠀⠀⠀⠈⠁⠀⢠⠄⣰⠟⠀⢀⡔⢠⠀⠀⠀⠀⣠⠠⡄⠘⢧
#⠀⠀⠈⠛⢦⣀⣿⠀⠀⢠⡆⠀⠀⠈⠀⣯⠀⠀⠈⠛⠛⠀⠠⢦⠄⠙⠛⠃⠀⢸
#⠀⠀⠀⠀⠀⠉⣿⠀⠀⠀⢠⠀⠀⢠⠀⠹⣆⠀⠀⠀⠢⢤⠠⠞⠤⡠⠄⠀⢀⡾
#⠀⠀⠀⠀⠀⢀⡿⠦⢤⣤⣤⣤⣤⣤⣤⣤⡼⣷⠶⠤⢤⣤⣤⡤⢤⡤⠶⠖⠋⠀
#⠀⠀⠀⠀⠀⠸⣤⡴⠋⠸⣇⣠⠼⠁⠀⠀⠀⠹⣄⣠⠞⠀⢾⡀⣠⠃⠀⠀⠀⠀
# ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠁⠀⠀⠀⠀⠀
on:
push:
branches-ignore:
- release
- dev-release
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
build-ground-only-test:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Dependencies
run: |
sudo apt update
sudo ./install_build_dep.sh ubuntu-x86
- name: Build with air support explicitly disabled
run: |
cd OpenHD
sudo mkdir -p /Videos/
./build_air_disabled.sh
cd build_air_disabled
sudo ./openhd -g -t 10
build-usb-cam-disabled-test:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Dependencies
run: |
sudo mkdir -p /Videos/
sudo apt update
sudo ./install_build_dep.sh ubuntu-x86
# Doesn't require libusb and libv4l2
sudo apt-get remove libv4l-dev
sudo apt-get remove libusb-1.0-0-dev
- name: Build with air support explicitly disabled
run: |
cd OpenHD
./build_usb_cam_disabled.sh
cd build_usb_cam_disabled
sudo ./openhd -a -t 10
build-and-run-air-ground-test:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Dependencies
run: |
sudo mkdir -p /Videos/
sudo apt update
sudo ./install_build_dep.sh ubuntu-x86
- name: Build with make
run: |
cd OpenHD
./build_cmake.sh
- name: enable dummy wifi card
run: |
sudo ./OpenHD/ohd_common/copy_config_file.sh
sudo sed -i 's/\(^WIFI_MONITOR_CARD_EMULATE =\).*/\1true/' /boot/openhd/hardware.config
sudo sed -i 's/\(^WIFI_MONITOR_CARD_EMULATE =\).*/\1true/' /config/openhd/hardware.config
- name: Run as air, but limited to X seconds
run: |
sudo ./OpenHD/build/openhd -a --run-time-seconds 10
- name: Run as ground, but limited to X seconds
run: |
sudo ./OpenHD/build/openhd -g --run-time-seconds 10