summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpenguin <penguin@epenguin.net>2025-12-12 23:02:28 -0600
committerpenguin <penguin@epenguin.net>2025-12-12 23:05:56 -0600
commite83ca9aab29526d33c79dd6d7b07dfd83c22cace (patch)
tree7078c8e01e949dd422007dc6ccf1f5e352714e51
parent0d1f38f7955be0b903c91668222612294f0b3d61 (diff)
downloadgentoo-utils-e83ca9aab29526d33c79dd6d7b07dfd83c22cace.tar.gz
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.
-rw-r--r--.gitea/workflows/gentoo-utils.yml21
1 files changed, 21 insertions, 0 deletions
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
+