From aaee1ade3f3378d9ae538f3a73ba065c40639f63 Mon Sep 17 00:00:00 2001 From: Benedikt Moritz Maurer Date: Wed, 2 Oct 2024 10:04:59 +0200 Subject: [PATCH] Add CI config file for github --- .github/workflows/ci.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..4d2e32f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,39 @@ +name: Flash CI + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up C++ environment + uses: actions/setup-cpp@v2 + with: + compiler: gcc + + - name: Install dependencies + run: sudo apt-get update && sudo apt-get install -y + cmake libyaml-cpp-dev catch2 libeigen3-dev doxygen libhdf5-dev + + - name: Create build directory + run: mkdir build + + - name: Configure CMake + run: cmake -S . -B build + + - name: Build the project + run: cmake --build build + + - name: Run tests + run: cd build && ctest --output-on-failure