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:
|
pull_request:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ci-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# Pure MoonBit: type-check every package and run the model tests.
|
# Pure MoonBit: type-check every package and run the portable model tests
|
||||||
# Needs no audio/GUI libraries, so it runs on the default runner image
|
# directly on the Depot Ubuntu 24.04 runner.
|
||||||
# (node:20-bullseye-like).
|
|
||||||
check:
|
check:
|
||||||
runs-on: ubuntu-latest
|
runs-on: depot-ubuntu-24.04-4
|
||||||
|
timeout-minutes: 15
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
@@ -26,19 +30,18 @@ jobs:
|
|||||||
moon check --target native --deny-warn
|
moon check --target native --deny-warn
|
||||||
moon fmt --check
|
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)
|
- name: moon test (pure packages)
|
||||||
run: moon test --target wasm-gc
|
run: moon test --target wasm-gc
|
||||||
|
|
||||||
# Native build + headless smoke test. Debian bullseye (the default runner
|
# Native build + headless smoke test. Ubuntu 24.04 (the Depot host image)
|
||||||
# image) has no libwireplumber-0.5 and a too-old GTK4, so this job runs in
|
# only ships WirePlumber 0.4, so this job runs in a debian:trixie container
|
||||||
# a debian:trixie container (PipeWire 1.4, WirePlumber 0.5, GTK 4.18).
|
# (PipeWire 1.4, WirePlumber 0.5, GTK 4.18).
|
||||||
# The container has no Node, so actions/checkout cannot run; clone with git.
|
# The container has no Node, so actions/checkout cannot run; clone with git.
|
||||||
native:
|
native:
|
||||||
runs-on: ubuntu-latest
|
runs-on: depot-ubuntu-24.04-4
|
||||||
container:
|
container:
|
||||||
image: debian:trixie
|
image: debian:trixie
|
||||||
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
- name: Install build and test dependencies
|
- name: Install build and test dependencies
|
||||||
run: |
|
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
|
accent, switches it to orange while moonmix runs, and renders the tabs again
|
||||||
(`<prefix>-accent-<n>.png`) once the change has been applied.
|
(`<prefix>-accent-<n>.png`) once the change has been applied.
|
||||||
|
|
||||||
CI (`.gitea/workflows/ci.yaml`) runs the pure checks on the default runner.
|
CI (`.gitea/workflows/ci.yaml`) runs on Depot (`depot-ubuntu-24.04-4`) runners:
|
||||||
It runs the native build and the smoke test in a `debian:trixie` container,
|
pure checks run directly on Ubuntu 24.04, and the native build and smoke test
|
||||||
because bullseye has no WirePlumber 0.5.
|
run in a `debian:trixie` container because Ubuntu 24.04 only ships WirePlumber
|
||||||
|
0.4.
|
||||||
|
|
||||||
## Releases
|
## Releases
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user