Skip to content

Commit

Permalink
Issue 79 (#80)
Browse files Browse the repository at this point in the history
* ISSUE-79 migrate from travis to actions

* ISSUE-79 remove travis

* ISSUE-79 build and test on new pull request targeting master or develop

* ISSUE-79 ola ppa gone missing

* ISSUE-79 list files, looking for expected output

* ISSUE-79 update path to expected output

* ISSUE-79 remove commented ola repo

* ISSUE-79 remove diagnostic ls

---------

Co-authored-by: scottomatic <[email protected]>
  • Loading branch information
edlins and scottomatic authored Nov 19, 2023
1 parent c5379aa commit 4895d0d
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 43 deletions.
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)

0 comments on commit 4895d0d

Please sign in to comment.