From 2a489741661fecd6f1bccb3e743d16203a831a22 Mon Sep 17 00:00:00 2001 From: Daniil Tatianin <99danilt@gmail.com> Date: Tue, 6 Feb 2024 10:07:13 +0300 Subject: [PATCH] Add base CI This just builds the library as well as the test server for now, nothing else. Signed-off-by: Daniil Tatianin --- .github/workflows/main.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/main.yaml diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 0000000..26b7a23 --- /dev/null +++ b/.github/workflows/main.yaml @@ -0,0 +1,23 @@ +name: CI +on: [push, pull_request] + +jobs: + build-and-run-tests: + runs-on: ubuntu-latest + + steps: + uses: actions/checkout@v3 + + - name: Install libraries + run: | + sudo apt update + sudo apt install python3 python3-pytest meson clang + + - name: Build + run: | + src_dir="${{ github.workspace }}" + build_dir="$src_dir/build" + CC=clang meson setup $build_dir $src_dir + pushd $build_dir + ninja -j0 + popd