-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (48 loc) · 1.5 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
50
51
52
53
54
55
56
57
58
59
60
61
name: CI
on: [push]
env:
BUILD_TYPE: Debug
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install python dependencies
run: |
python -m pip install --upgrade pip
pip3 install websocket-client
- name: Install dependencies
run: |
sudo apt-get update
sudo apt install libfluidsynth-dev
# Only needed when gpsd is added to the build.
# sudo apt-get install libgps-dev
- name: Install test dependencies
run: |
sudo apt install socat
- name: Create Build Environment & configure CMake
working-directory: ${{runner.workspace}}/romi-rover-build-and-test
run: |
mkdir build_tests
cd build_tests
cmake ..
- name: Build
working-directory: ${{runner.workspace}}/romi-rover-build-and-test
run: |
cd build_tests
make -j4
- name: Test
working-directory: ${{runner.workspace}}/romi-rover-build-and-test
run: |
cd build_tests
ctest -V
- name: Upload coverage to Codecov
working-directory: ${{runner.workspace}}/romi-rover-build-and-test
run: bash <(curl -s https://codecov.io/bash)