From 168b0626d818f55b9223b92e9bea65f2d6ab1d49 Mon Sep 17 00:00:00 2001 From: Samad Khan Date: Sun, 31 Dec 2023 14:31:41 -0500 Subject: [PATCH] Uncommenting download_roc.cmake and adding github action --- .github/workflows/build.yaml | 22 +++++++++++++++++++++- cmake/download_roc.cmake | 16 ++++++++-------- 2 files changed, 29 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index f6c30c3..aad2e30 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -36,5 +36,25 @@ jobs: - name: Build tests run: | - make build + 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 diff --git a/cmake/download_roc.cmake b/cmake/download_roc.cmake index 6083b08..8d3bfc5 100644 --- a/cmake/download_roc.cmake +++ b/cmake/download_roc.cmake @@ -17,14 +17,14 @@ set(SCONS_CMD --disable-openssl --disable-libunwind --disable-pulseaudio - #--host=${CMAKE_CXX_COMPILER_TARGET} - #"CC=${CMAKE_C_COMPILER}" - #"CCLD=${CMAKE_C_COMPILER}" - #"CXX=${CMAKE_CXX_COMPILER}" - #"CXXLD=${CMAKE_CXX_COMPILER}" - #"AR=${CMAKE_AR}" - #"RANLIB=${CMAKE_RANLIB}" - #"STRIP=${CMAKE_STRIP}" + --host=${CMAKE_CXX_COMPILER_TARGET} + "CC=${CMAKE_C_COMPILER}" + "CCLD=${CMAKE_C_COMPILER}" + "CXX=${CMAKE_CXX_COMPILER}" + "CXXLD=${CMAKE_CXX_COMPILER}" + "AR=${CMAKE_AR}" + "RANLIB=${CMAKE_RANLIB}" + "STRIP=${CMAKE_STRIP}" )