From 6ffa55510fa289b0ae3f57dbcb8ff828e7d5a39d Mon Sep 17 00:00:00 2001 From: penguin Date: Fri, 12 Dec 2025 13:32:43 -0600 Subject: [PATCH] infra: actions: add test job --- .gitea/workflows/gentoo-utils.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.gitea/workflows/gentoo-utils.yml b/.gitea/workflows/gentoo-utils.yml index b72d89e..f5c8254 100644 --- a/.gitea/workflows/gentoo-utils.yml +++ b/.gitea/workflows/gentoo-utils.yml @@ -76,3 +76,21 @@ jobs: run: | 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 + 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 +