From e83ca9aab29526d33c79dd6d7b07dfd83c22cace Mon Sep 17 00:00:00 2001 From: penguin Date: Fri, 12 Dec 2025 23:02:28 -0600 Subject: [PATCH] ci: add test job Right now this just rebuilds everything the build job built. In a future PR I will either cache the build dir from the build job or I will upload the build dir as an artifact. --- .gitea/workflows/gentoo-utils.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.gitea/workflows/gentoo-utils.yml b/.gitea/workflows/gentoo-utils.yml index 94445ff..6c539a8 100644 --- a/.gitea/workflows/gentoo-utils.yml +++ b/.gitea/workflows/gentoo-utils.yml @@ -104,3 +104,24 @@ jobs: source /etc/profile meson setup -Dfuzz=enabled -Dtests=enabled -Dbuildtype=debugoptimized -Ddocs=enabled build meson compile -C build + + # FIXME: Currently this rebuilds everything. Instead we should bring over the build dir from the build job. This will come in handy + # when we have multiple build targets and configs. What we have currently is fine until we get lots of builds going + test: + runs-on: brutalisk + env: + CC: 'clang' + CXX: 'clang++' + needs: [build-oci-image, build] + container: + image: ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${{ needs.build-oci-image.outputs.image_tag }} + steps: + - name: Checkout repo + uses: actions/checkout@v5 + + - name: test + run: | + meson setup -Dfuzz=enabled -Dtests=enabled -Dbuildtype=debugoptimized -Ddocs=enabled build + meson compile -C build + ninja test -C build +