-
Notifications
You must be signed in to change notification settings - Fork 8
65 lines (52 loc) · 1.41 KB
/
ci_workflow.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
name: Build and Test
on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
- develop
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-20.04]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Update and install dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends libola-dev --allow-unauthenticated
sudo apt-get install -y --no-install-recommends libncurses5-dev
sudo apt-get install -y --no-install-recommends libasound2-dev
sudo apt-get install -y --no-install-recommends libfftw3-dev
sudo apt-get install -y --no-install-recommends systemd
- name: Create build directory
run: mkdir build
- name: Configure with CMake
run: cmake .
- name: Build
run: make
- name: Install
run: sudo make install
- name: Build and run PCA9685test
run: make PCA9685test && ctest -V
- name: Build examples
run: make examples
- name: Install and verify examples/olaclient
run: |
cd examples/olaclient
sudo make install
cat /var/log/olaclient.log
cd ../..
- name: Install and verify examples/audio
run: |
cd examples/audio
sudo make install
cat /var/log/vupeak.log
cd ../..