From 8ceefd686db58f256223c981fbbf4dbd0dba374a Mon Sep 17 00:00:00 2001 From: Kievits Rene Date: Wed, 20 Mar 2024 17:40:48 +0100 Subject: [PATCH] Create c-cpp.yml Lets hope this works --- .github/workflows/c-cpp.yml | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/c-cpp.yml diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml new file mode 100644 index 0000000..f58e25c --- /dev/null +++ b/.github/workflows/c-cpp.yml @@ -0,0 +1,38 @@ +name: CI + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Qt + uses: jurplel/install-qt-action@v2 + with: + qt-version: '6.2.0' + + - name: Configure project + run: | + mkdir build + cd build + cmake .. + + - name: Build project + run: | + cd build + make + + - name: Run tests + run: | + cd build + ctest --output-on-failure