Run CI on Depot Ubuntu 24.04 runners and cancel superseded runs
- Move the check and native jobs from ubuntu-latest to depot-ubuntu-24.04-4 - Keep the native job in a debian:trixie container (Ubuntu 24.04 has only WirePlumber 0.4) - Add job timeouts: 15 minutes for check, 30 for native - Cancel in-progress CI runs when a newer run starts on the same ref - Update the README CI notes to match
This commit is contained in:
1 parent
8d6b0e766c
commit
72d767b089
2 files changed
+17
-13
No files matched your search
+13
-10
@@ -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: |
|
||||
|
||||
@@ -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
|
||||
(`<prefix>-accent-<n>.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
|
||||
|
||||
|
||||
Reference in new issue
Block a user