From 1df62874e92843ef369c2b66fb194655692a3d38 Mon Sep 17 00:00:00 2001 From: Moritz Martinius Date: Mon, 25 Sep 2023 17:41:38 +0000 Subject: [PATCH] Attempt to setup gitea build action (#1) Reviewed-on: https://git.admiralackbar.de/moritz/ptouch-prnt/pulls/1 --- .gitea/workflows/build.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .gitea/workflows/build.yaml diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..d935825 --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,27 @@ +name: Build ptprnt +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Starting action... + run: echo "Branch ${{ gitea.ref }} will be built for project ${{ gitea.repository }}." + - name: Checkout branch + uses: actions/checkout@v3 + - name: Update package cache + run: apt-get update + - name: install meson + run: apt-get -yq install meson + - name: Install build dependencies + run: apt-get -yq install libusb-1.0-0-dev libspdlog-dev libpango1.0-dev libcairo2-dev gcovr + - name: setup builddir + run: meson setup builddir -Db_coverage=true + - name: build all targets + run: ninja -C builddir + - name: run unit tests + run: ninja -C builddir test + - name: calculate coverage + run: ninja -C builddir coverage-text + - name: Coverage report + run: cat ./builddir/meson-logs/coverage.txt