Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 79 #80

Merged
merged 8 commits into from
Nov 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions .github/workflows/ci_workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Build and Test

on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
- develop

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 ../..
42 changes: 0 additions & 42 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ add_subdirectory(examples EXCLUDE_FROM_ALL)
# add tests
enable_testing()
add_test(run_test sh -xc "./test/PCA9685test -td 1 40 > PCA9685_actual_output" 2>&1)
add_test(diff_output sh -xc "diff ../test/PCA9685_expected_output ./PCA9685_actual_output" 2>&1)
add_test(diff_output sh -xc "diff ./test/PCA9685_expected_output ./PCA9685_actual_output" 2>&1)

Loading