mirror of
https://github.com/storytold/lightcraft.git
synced 2026-12-02 20:19:40 -05:00
40 lines
1.8 KiB
YAML
40 lines
1.8 KiB
YAML
name: CI
|
|
|
|
# Quality gates for every push to main and every pull request (`cargo xtask ci`), through the
|
|
# suite's shared gate workflow in craft-common-actions.
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
# A newer push to a PR branch cancels its older run; every push to main runs to the end.
|
|
concurrency:
|
|
group: ci-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}
|
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
|
|
|
jobs:
|
|
gate:
|
|
# Tracks @main so suite-wide CI fixes reach every app without a PR in each repository.
|
|
uses: storytold/craft-common-actions/.github/workflows/gate.yml@main
|
|
with:
|
|
# Same craft-fonts commit as release.yml.
|
|
craft-fonts-ref: b076417b5880bd4154bd22f00695b1d28c6bea83
|
|
timeout-minutes: 150
|
|
# Measured on the same runner kind: main takes 32-49 min; the UI port's suite takes about 100 min (2 920
|
|
# UI tests, 8 of them heavy photo-rendering journeys worth ~21 min, against main's 1 982), so a hung test is
|
|
# stopped at 140 min. Splitting the UI suite across shard legs is the follow-up (work item: shard the gate);
|
|
# this ceiling is recorded, not guessed, and CI's report names each step's seconds so a further regression shows.
|
|
gate-timeout-minutes: 140
|
|
# Keep memory headroom: locally the full UI suite peaked at 14.61 GiB with four threads and 12.10 GiB with two.
|
|
command: RUST_TEST_THREADS=2 cargo xtask ci
|
|
# xtask ci runs cargo test: the demo scene cache is per process, so nextest is slower here.
|
|
tools: ""
|
|
packages: >-
|
|
pkg-config libxkbcommon-dev libwayland-dev libx11-dev libxcb1-dev libxcursor-dev
|
|
libxrandr-dev libxi-dev libfontconfig1-dev libfreetype-dev mesa-vulkan-drivers
|
|
libgl1-mesa-dev libdbus-1-dev
|