From 6936f8aef0207f67621ecaec30bc33d28b0a0b91 Mon Sep 17 00:00:00 2001 From: William Pettersson Date: Mon, 14 Feb 2022 17:20:59 +0000 Subject: [PATCH] Add GH Action to build/test --- .github/workflows/compile-build-test.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/compile-build-test.yml diff --git a/.github/workflows/compile-build-test.yml b/.github/workflows/compile-build-test.yml new file mode 100644 index 0000000000..b9d527c22b --- /dev/null +++ b/.github/workflows/compile-build-test.yml @@ -0,0 +1,21 @@ +name: Compile and test +on: + push: + branches: + - 'master' +jobs: + compile-ubuntu: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install pre-reqs + run: | + sudo apt-get update + sudo apt-get -y install libgmp-dev libxml2-dev libjansson-dev libtokyocabinet-dev libpopt-dev qtbase5-dev libqt5svg5-dev python3-all-dev doxygen libgraphviz-dev pkg-config xsltproc libcppunit-dev + - name: Configure + run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release + - name: Compile + run: cmake --build build --target all --config Release -- -j4 + - name: Test + run: ctest +