Adding cmake configuration to download roc-toolkit with branch provided via cmake variable #143
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
repository_dispatch: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
schedule: | |
- cron: '0 0 * * 1' | |
jobs: | |
ubuntu: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install system dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get -y install g++ pkg-config scons ragel gengetopt \ | |
libuv1-dev libunwind-dev libpulse-dev libsox-dev libcpputest-dev libspeexdsp-dev \ | |
libtool intltool autoconf automake make cmake | |
- name: Build Roc | |
run: | | |
git clone https://github.com/roc-streaming/roc-toolkit.git /tmp/roc | |
scons -C /tmp/roc -Q --build-3rdparty=openfec | |
sudo scons -C /tmp/roc -Q --build-3rdparty=openfec install | |
- name: Build tests | |
run: | | |
mkdir build && cd build | |
cmake -DDOWNLOAD_ROC=OFF .. && make -j | |
test -e ./bin/rt-tests | |
ubuntu-download-roc: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install system dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get -y install g++ pkg-config scons ragel gengetopt \ | |
libuv1-dev libunwind-dev libpulse-dev libsox-dev libcpputest-dev libspeexdsp-dev \ | |
libtool intltool autoconf automake make cmake | |
- name: Build tests | |
run: | | |
mkdir build && cd build | |
cmake .. && make -j | |
test -e ./bin/rt-tests |