From e9365bf0514a7539b202be8126cd478d328fbee5 Mon Sep 17 00:00:00 2001 From: F33RNI Date: Mon, 26 Feb 2024 03:18:57 -0500 Subject: [PATCH] feat: add github actions --- .github/workflows/tests.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..a557687 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,30 @@ +name: Build and run tests + +on: + push: + branches: + - '*' + pull_request: + branches: + - '*' + merge_group: + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v2 + - name: Update list of packages + run: sudo apt-get update + - name: Install make and cmake + run: sudo apt-get install -y make cmake + - name: Create build directory + run: mkdir -p build + - name: Configure project + run: cmake -B build -DTESTS=ON -DLOGGER_LEVEL=1 + - name: Build tests + run: cmake --build build --config Release + - name: Run tests + run: build/petalflow_tests