Browse Source

Create build.yml

Panagiotis Christopoulos Charitos 4 years ago
parent
commit
e89cca0d1b
1 changed files with 24 additions and 0 deletions
  1. 24 0
      .github/workflows/build.yml

+ 24 - 0
.github/workflows/build.yml

@@ -0,0 +1,24 @@
+name: CMake
+
+on:
+  push:
+    branches: [ master ]
+  pull_request:
+    branches: [ master ]
+
+jobs:
+  Linux_debug_gcc:
+    runs-on: ubuntu-latest
+
+    steps:
+    - name: Install dependencies
+      run: sudo apt install libx11-dev libx11-xcb-dev clang gcc
+      
+    - name: Clone
+      uses: actions/checkout@v2
+
+    - name: Configure CMake
+      run: cmake -B ${{github.workspace}}/build -DANKI_BUILD_TESTS=ON -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILER=gcc -DCMAKE_BUILD_TYPE=Debug -DANKI_EXTRA_CHECKS=ON
+
+    - name: Build
+      run: cmake --build ${{github.workspace}}/build --config Debug