From 4a44f763928e40af1ea9bf32175c90dd2efe2457 Mon Sep 17 00:00:00 2001 From: homeburger Date: Fri, 8 May 2026 11:39:49 -0500 Subject: [PATCH] add gitea action for build and test --- .gitea/workflows/build_and_test.yaml | 51 ++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .gitea/workflows/build_and_test.yaml diff --git a/.gitea/workflows/build_and_test.yaml b/.gitea/workflows/build_and_test.yaml new file mode 100644 index 0000000..69c72b7 --- /dev/null +++ b/.gitea/workflows/build_and_test.yaml @@ -0,0 +1,51 @@ + +name: Build and Test verification +run-name: ${{ gitea.actor }} +on: [push] + +jobs: + build: + runs-on: debian12 + container: + image: git.vxbard.net/homeburger/bard-cpp-builder:1.0 + steps: + - name: clone + uses: actions/checkout@v3 + + - name: container-setup + run: container-setup.sh + + - name: configure + run: cmake -S . -B build + + - name: build + run: cmake build --build -j + + - name: upload + uses: actions/upload-artifact@v3 + with: + name: build-artifact + path: build/* + + test: + runs-on: debian12 + container: + image: git.vxbard.net/homeburger/bard-cpp-builder:1.0 + needs: build + steps: + - name: container-setup + run: container-setup.sh + + - name: download + uses: actions/download-artifact@v3 + with: + name: build-artifact + + - name: run_unit_tests + run: | + cd build + ctest -T Test + + - name: code_coverage + run: gcovr -r .. --filter "../src" + \ No newline at end of file