From b18ab7aed1470bd476c691a1165a56a73d7584fc Mon Sep 17 00:00:00 2001 From: Sprite Date: Sun, 22 Nov 2026 22:58:12 +0000 Subject: [PATCH] fix: run native model tests in the trixie CI job Linking MoonBit's native runtime on the bullseye runner fails with undefined pthread symbols (glibc 2.31 needs -lpthread), so the check job now only runs the wasm-gc tests and the native model tests move to the debian:trixie job that already builds natively. Co-Authored-By: Claude Opus 5.5 --- .gitea/workflows/ci.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 030d78e..17180ed 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -26,10 +26,10 @@ jobs: moon check --target native --deny-warn moon fmt --check + # Native tests run in the trixie job: linking MoonBit's runtime needs + # -lpthread on bullseye's glibc 2.31. - name: moon test (pure packages) - run: | - moon test --target wasm-gc - moon test --target native -p model + run: moon test --target wasm-gc # Native build + headless smoke test. Debian bullseye (the default runner # image) has no libwireplumber-0.5 and a too-old GTK4, so this job runs in @@ -65,6 +65,7 @@ jobs: - name: Build (native, links PipeWire/WirePlumber/GTK4) run: | + moon test --target native -p model moon build --target native ldd _build/native/debug/build/cmd/moonmix/moonmix.exe | grep -E 'wireplumber|pipewire|gtk-4'