From 299e4278a2b7cf956f283e911716c73af1860de4 Mon Sep 17 00:00:00 2001 From: Kevin Perdlich Date: Tue, 24 Sep 2024 18:00:19 +0200 Subject: [PATCH] CI: Add linux build github action --- .github/workflows/linux-build.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/linux-build.yml diff --git a/.github/workflows/linux-build.yml b/.github/workflows/linux-build.yml new file mode 100644 index 0000000..36e092c --- /dev/null +++ b/.github/workflows/linux-build.yml @@ -0,0 +1,29 @@ +name: Linux Build + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Install dependencies + run: sudo apt-get install cmake gcc g++ ninja-build + + - name: Create build directory + run: mkdir -p build + + - name: Configure CMake + working-directory: ./build + run: cmake -G Ninja .. + + - name: Build + working-directory: ./build + run: cmake --build . + + - name: Runs tests + working-directory: ./build + run: ctest + +