diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 2290d99..8c6ebf2 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -6,12 +6,16 @@ on: pull_request: workflow_dispatch: +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + jobs: - # Pure MoonBit: type-check every package and run the model tests. - # Needs no audio/GUI libraries, so it runs on the default runner image - # (node:20-bullseye-like). + # Pure MoonBit: type-check every package and run the portable model tests + # directly on the Depot Ubuntu 24.04 runner. check: - runs-on: ubuntu-latest + runs-on: depot-ubuntu-24.04-4 + timeout-minutes: 15 steps: - uses: actions/checkout@v4 @@ -26,19 +30,18 @@ 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 - # 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 - # a debian:trixie container (PipeWire 1.4, WirePlumber 0.5, GTK 4.18). + # Native build + headless smoke test. Ubuntu 24.04 (the Depot host image) + # only ships WirePlumber 0.4, so this job runs in a debian:trixie container + # (PipeWire 1.4, WirePlumber 0.5, GTK 4.18). # The container has no Node, so actions/checkout cannot run; clone with git. native: - runs-on: ubuntu-latest + runs-on: depot-ubuntu-24.04-4 container: image: debian:trixie + timeout-minutes: 30 steps: - name: Install build and test dependencies run: | diff --git a/README.md b/README.md index eb2982b..a16cd96 100644 --- a/README.md +++ b/README.md @@ -316,9 +316,10 @@ session bus with a fake portal (`tools/fake-portal.py`) that reports a green accent, switches it to orange while moonmix runs, and renders the tabs again (`-accent-.png`) once the change has been applied. -CI (`.gitea/workflows/ci.yaml`) runs the pure checks on the default runner. -It runs the native build and the smoke test in a `debian:trixie` container, -because bullseye has no WirePlumber 0.5. +CI (`.gitea/workflows/ci.yaml`) runs on Depot (`depot-ubuntu-24.04-4`) runners: +pure checks run directly on Ubuntu 24.04, and the native build and smoke test +run in a `debian:trixie` container because Ubuntu 24.04 only ships WirePlumber +0.4. ## Releases