From: philippewarren Date: Mon, 7 Mar 2022 21:43:01 +0000 (-0500) Subject: Added CI X-Git-Url: http://kyz.pub/gitweb/?a=commitdiff_plain;h=505cd44f8276bcda6ca0a99da0ec31fbf6938c36;p=yn%2Fyn-odas.git Added CI --- diff --git a/.github/workflows/compilation.yaml b/.github/workflows/compilation.yaml new file mode 100644 index 0000000..c793637 --- /dev/null +++ b/.github/workflows/compilation.yaml @@ -0,0 +1,38 @@ +name: compilation + +on: + pull_request: + branches: [main] + push: + branches: [main] + workflow_dispatch: + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-20.04, ubuntu-18.04] + build-type: [Debug, Release] + + steps: + - uses: actions/checkout@v2 + with: + submodules: recursive + + - name: Install system dependencies + run: | + sudo apt-get update + sudo apt-get install cmake gcc build-essential libfftw3-dev libconfig-dev libasound2-dev gfortran texinfo pulseaudio libpulse-dev + + - name: Create build directory + working-directory: odas + run: | + mkdir build + + - name: Run CMake and build opentera-webrtc-native-client + working-directory: odas/build + run: | + cmake ../ -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} + make -j2 + make install