Added CI
authorphilippewarren <philippewarren31@gmail.com>
Mon, 7 Mar 2022 21:43:01 +0000 (16:43 -0500)
committerphilippewarren <philippewarren31@gmail.com>
Mon, 7 Mar 2022 21:43:01 +0000 (16:43 -0500)
.github/workflows/compilation.yaml [new file with mode: 0644]

diff --git a/.github/workflows/compilation.yaml b/.github/workflows/compilation.yaml
new file mode 100644 (file)
index 0000000..c793637
--- /dev/null
@@ -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