From 9fa50ddb57e5625fa8aef26264615298d8e08bbc Mon Sep 17 00:00:00 2001 From: Markus Schmidl Date: Mon, 25 Nov 2024 11:16:20 +0100 Subject: [PATCH] add ci workflow for ctest --- .github/workflows/ctest.yml | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/ctest.yml diff --git a/.github/workflows/ctest.yml b/.github/workflows/ctest.yml new file mode 100644 index 00000000..8db9f31d --- /dev/null +++ b/.github/workflows/ctest.yml @@ -0,0 +1,38 @@ +name: ctest + +on: [push, pull_request] + +env: + PYTHONUNBUFFERED: 1 + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + submodules: 'true' + + - name: Install python3 + run: | + sudo apt update + sudo apt install python3 + + - name: Create build directory + run: | + mkdir build + + - name: Run CMake configure (default) + run: | + cd build + cmake .. + + - name: Build + run: | + cd build + make -j4 + + - name: Ctest + run: | + make test \ No newline at end of file