2021-12-12 20:49:01 +00:00
|
|
|
name: CTest
|
2021-12-12 20:44:18 +00:00
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
# The CMake configure and build commands are platform agnostic and should work equally
|
|
|
|
# well on Windows or Mac. You can convert this to a matrix build if you need
|
|
|
|
# cross-platform coverage.
|
|
|
|
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Install packages
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
2021-12-12 21:57:29 +00:00
|
|
|
sudo apt-get install octave octave-common octave-signal sox python3 python3-pip portaudio19-dev python3-pyaudio alsa-utils
|
2021-12-12 21:09:54 +00:00
|
|
|
pip3 install psutil crcengine ujson pyserial numpy structlog miniaudio
|
2021-12-12 20:44:18 +00:00
|
|
|
|
|
|
|
- name: Build codec2
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
git clone https://github.com/drowe67/codec2.git
|
|
|
|
cd codec2 && git checkout dr-tnc && git pull
|
|
|
|
mkdir -p build_linux && cd build_linux && cmake .. && make
|
|
|
|
|
|
|
|
- name: run ctests
|
|
|
|
shell: bash
|
|
|
|
working-directory: ${{github.workspace}}
|
|
|
|
run: |
|
2021-12-12 21:05:18 +00:00
|
|
|
mkdir build && cd build
|
|
|
|
cmake -DCODEC2_BUILD_DIR=$GITHUB_WORKSPACE/codec2/build_linux ..
|
2021-12-12 21:09:54 +00:00
|
|
|
ctest --output-on-failure
|