From 21198b4fc4867c36b2f0e54d7cd1874dcd44461f Mon Sep 17 00:00:00 2001 From: gvnnz Date: Sat, 30 Mar 2024 18:43:51 +0100 Subject: [PATCH] Add GitHub CI workflow to run tests --- .github/workflows/ci.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 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..b873f63 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,23 @@ +name: Continuous integration + +on: [push, pull_request] + +jobs: + linux: + name: CI + runs-on: ubuntu-20.04 + timeout-minutes: 60 + steps: + - name: Download repository + uses: actions/checkout@v4 + with: + submodules: recursive + + - name: Generate Makefile + run: cmake -S . -B build/ -G "Unix Makefiles" + + - name: Build + run: cmake --build build/ -j 2 + + - name: Run tests + run: ./build/tests \ No newline at end of file