Repository navigation
1040 lines (1005 loc) · 48.2 KB
/
Copy pathci-pull.yml
File metadata and controls
1040 lines (1005 loc) · 48.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# ============================================================================
# Laige CI — full P0 platform matrix on pull request (M0-CI-01,
# re-baselined 2026-10-11, slow-suite split 2026-10-13)
#
# Roadmap: roadmap/M0-foundations.md, step M0-CI-01
# PRD refs: §6 (P0 platforms, AC-6.1), §14 (cadence), §8.1 (build budget)
#
# Cadence (PRD §14, as amended 2026-10-13 — "fast lane + gated slow
# suites"): this workflow runs on EVERY pull request. The eleven FAST
# jobs run unconditionally:
#
# * the five P0 OS jobs (linux-gcc, linux-clang, windows-msvc,
# macos-arm64, macos-intel);
# * the two sanitizer lanes (linux-asan, linux-tsan; M0-CI-02);
# * the four platform-independent tooling jobs (include-lint,
# determinism-lint, api-manifest, detcheck).
#
# The SLOW suites do NOT run on a normal PR. Every ctest entry that took
# longer than 30 s in the latest master run (38312355303, 2026-10-12)
# has been moved out of the main job into a dedicated job of its own
# (one per lane), and those jobs run ONLY when the PR carries the
# matching ci:slow:* label:
#
# label ctest entry(es) lanes
# ci:slow:sim laige-sim_tests gcc clang asan tsan
# ci:slow:render laige-render_tests gcc clang asan tsan
# ci:slow:particle particle_render gcc clang tsan
# ci:slow:zero-alloc zero_alloc asan tsan
# ci:slow:ecs-stress ecs_stress asan tsan
# ci:slow:bench-50k laige_bench_render_50k_fpx16 / _fp32 and
# laige_bench_ac4_fpx16 / _fp32 (M2-AC-01) gcc clang
#
# Evidence (run 38312355303, per-entry times in s, threshold 30 s):
# laige_bench_render_50k_fpx16 gcc 577.05 clang 578.42
# laige_bench_render_50k_fp32 gcc 593.82 clang 566.52
# laige_bench_ac4_fpx16 / _fp32 NEW in M2-AC-01 — estimated ~60 s
# from the render-50k evidence (577 s over 4000 frames of 116k
# quads vs the ac4 frame's 10k quads); first-run times replace this
# estimate in the header once the entry has a master-run measurement
# laige-sim_tests gcc 59.97 clang 53.79 asan 124.03 tsan 159.52
# laige-render_tests gcc 53.83 clang 44.45 asan 43.20 tsan 60.41
# particle_render gcc 38.76 clang 34.67 asan 28.84 tsan 39.56
# zero_alloc gcc 16.16 clang 14.39 asan 43.76 tsan 54.75
# ecs_stress gcc 16.34 clang 14.45 asan 42.87 tsan 54.70
# The threshold is per lane (zero_alloc / ecs_stress stay in the main
# gcc/clang jobs, particle_render in the main asan job — see the
# evidence). No entry exceeds 30 s on windows/macOS (worst:
# laige-sim_tests 27.11 s on macos-intel), so those lanes have no slow
# jobs and their jobs are unchanged.
#
# The main jobs' ctest EXCLUDES the moved entries (-E) and each slow
# job SELECTS its entry (-R): every entry runs exactly once per gated
# run, never twice, and never ungated. The suite list is re-derived
# from the latest master run whenever a suite crosses (or leaves) the
# 30 s threshold — see AGENTS.md §5, "Slow CI suites and the
# milestone gate".
#
# MILESTONE GATE: a milestone-gate PR MUST carry ALL six ci:slow:*
# labels so every slow job runs and passes before merge (AGENTS.md
# §5).
#
# Label mechanics (the old ci:windows / ci:macos precedent, still the
# standing convention for those two labels even though no job reads
# them): a run snapshots the PR's labels when it starts, and adding a
# label later never re-triggers a finished or running run — so the
# ci:slow:* labels must be on the PR BEFORE the run is created (a
# push to the PR branch after adding the labels starts a fresh run).
#
# Local verification of the Linux trees before pushing remains a
# developer obligation (AGENTS.md, section 5: the local Linux test
# gate).
#
# Jobs, runner images, steps, and the build-budget timeouts are the
# same as in ci.yml — including the macOS exceptions (macOS arm64
# carries timeout-minutes: 20, macOS Intel 15 — the shared-runners
# tail latency), both documented in ci.yml's header (the full matrix
# documentation and the Windows multi-config note). The Linux fast jobs
# carry timeout-minutes: 10 (the pre-split 45-min exception is gone —
# the render-50k bench moved to the label-gated slow BENCH jobs, which
# carry 30). The one difference from ci.yml: the sanitizer jobs upload
# no artifacts here, neither fast nor slow. The pull_request
# GITHUB_TOKEN is read-only (contents:read for same-repo PRs, read-only
# for fork PRs — Actions cannot grant actions:write on this event), so
# the report files are not archived; the tee'd ctest output keeps every
# sanitizer report in the job log, which is enough to diagnose a red PR.
# The merge lane (ci.yml) still archives them as artifacts.
#
# Fuzz lane (PRD §14 "every commit (bounded)"; M0-TEST-01): no separate
# fuzz job — the `fuzz_json_parse` ctest entry (1000 deterministic runs
# of laige-fuzz on the json_parse target) runs inside every build
# job's ctest, instrumented in the ASan tree. Seed and nightly-long-run
# conventions: docs/testing.md.
#
# Include-graph lint (M0-CI-03; NFR-8.11, NFR-8.13): the `include-lint`
# job runs on EVERY pull request — it is a platform-independent
# repository check (Python 3 stdlib only), not a P0 OS build. It
# enforces the PRD §10.1 include rules over src/** (laige-core depends
# on nothing internal; arrows only downward in the module stack;
# vendored deps only included from their deps.lock `owner`) and reports
# the vendored-dependency count, which must stay ≤ 10 (PRD §11).
#
# Fork PRs: this workflow uses the pull_request event, which runs on the
# merge ref with a read-only token; checkout + build + ctest need nothing
# beyond contents:read (no job in this workflow uploads artifacts).
# ============================================================================
name: CI (pull request)
on:
pull_request:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
linux-gcc:
name: Linux x64 (g++)
runs-on: ubuntu-24.04
# 10-min build budget (reverted from 45 on 2026-10-13): the render-50k
# bench and the other >30 s entries moved to the label-gated slow
# jobs (linux-gcc-slow / linux-gcc-bench, below). The heaviest
# remaining entries are the filtered sim/render suites (≤ 26 s) +
# the build (~1.5 min) — ~5 min total on the reference lane.
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# GLFW's X11 backend (GLFW_BUILD_WAYLAND=OFF in src/laige-render/
# CMakeLists.txt) needs only the X11 *headers* at configure time
# (GLFW 3.5 dlopens the X11/GL libraries at runtime); the
# ubuntu-24.04 runner image ships none of them. The libegl/libgl
# packages are the RUNTIME GL stack for the headless GL smoke
# (Mesa surfaceless EGL + llvmpipe software GL; the engine and
# GLAD load them by dlopen at runtime) (M2-GL-01).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=g++
- name: Build
run: cmake --build build -j
- name: Test (unit)
# -E excludes the >30 s entries that moved to the dedicated
# label-gated jobs (2026-10-13 split, see the header): they are
# selected there with -R, so each entry runs exactly once per
# gated run.
run: |
ctest --test-dir build --output-on-failure \
-E '^(laige-sim_tests|laige-render_tests|particle_render|laige_bench_render_50k_fpx16|laige_bench_render_50k_fp32|laige_bench_ac4_fpx16|laige_bench_ac4_fp32)$'
linux-clang:
name: Linux x64 (clang++)
runs-on: ubuntu-24.04
# 10-min build budget — see the linux-gcc note and the header.
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# GLFW's X11 backend (GLFW_BUILD_WAYLAND=OFF in src/laige-render/
# CMakeLists.txt) needs only the X11 *headers* at configure time
# (GLFW 3.5 dlopens the X11/GL libraries at runtime); the
# ubuntu-24.04 runner image ships none of them. The libegl/libgl
# packages are the RUNTIME GL stack for the headless GL smoke
# (Mesa surfaceless EGL + llvmpipe software GL; the engine and
# GLAD load them by dlopen at runtime) (M2-GL-01).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++
- name: Build
run: cmake --build build -j
- name: Test (unit)
# -E excludes the >30 s entries that moved to the dedicated
# label-gated jobs (2026-10-13 split, see the header): they are
# selected there with -R, so each entry runs exactly once per
# gated run.
run: |
ctest --test-dir build --output-on-failure \
-E '^(laige-sim_tests|laige-render_tests|particle_render|laige_bench_render_50k_fpx16|laige_bench_render_50k_fp32|laige_bench_ac4_fpx16|laige_bench_ac4_fp32)$'
linux-asan:
name: Linux x64 ASan+UBSan (clang++)
runs-on: ubuntu-24.04
# 10-min build budget: the >30 s entries moved to the label-gated
# linux-asan-slow job (2026-10-13 split, see the header).
# No artifact step here: the pull_request token is read-only (see
# the header). The tee keeps every report in the job log.
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# GLFW's X11 backend (GLFW_BUILD_WAYLAND=OFF in src/laige-render/
# CMakeLists.txt) needs only the X11 *headers* at configure time
# (GLFW 3.5 dlopens the X11/GL libraries at runtime); the
# ubuntu-24.04 runner image ships none of them. The libegl/libgl
# packages are the RUNTIME GL stack for the headless GL smoke
# (Mesa surfaceless EGL + llvmpipe software GL; the engine and
# GLAD load them by dlopen at runtime) (M2-GL-01).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure (ASan+UBSan)
run: cmake -S . -B build-asan -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++ -DLAIGE_ASAN=ON
- name: Build (ASan+UBSan)
run: cmake --build build-asan -j
- name: Test (unit, ASan+UBSan)
# Every sanitizer report is fatal to the test process: ASan via
# abort_on_error=1:halt_on_error=1 here, UBSan via
# -fno-sanitize-recover=all (wired by CMake). detect_leaks=1 (the
# Linux default) is stated explicitly. -E excludes the >30 s
# entries that moved to the label-gated linux-asan-slow job
# (2026-10-13 split, see the header).
env:
ASAN_OPTIONS: "abort_on_error=1:halt_on_error=1:detect_leaks=1"
run: |
set -o pipefail
ctest --test-dir build-asan --output-on-failure \
-E '^(laige-sim_tests|laige-render_tests|zero_alloc|ecs_stress)$' \
2>&1 | tee asan-ctest-output.txt
linux-tsan:
name: Linux x64 TSan (clang++)
# 10-min build budget: the >30 s entries moved to the label-gated
# linux-tsan-slow job (2026-10-13 split, see the header). Before the
# split the full TSan suite needed 30 min (the documented rationale
# is in ci.yml's linux-tsan note); the heaviest REMAINING entries
# are archetype (~26 s) and laige_run_smoke (~17 s) plus the build
# (~2 min).
# No artifact step here: the pull_request token is read-only (see
# the header). The tee keeps the race report in the job log.
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# GLFW's X11 backend (GLFW_BUILD_WAYLAND=OFF in src/laige-render/
# CMakeLists.txt) needs only the X11 *headers* at configure time
# (GLFW 3.5 dlopens the X11/GL libraries at runtime); the
# ubuntu-24.04 runner image ships none of them. The libegl/libgl
# packages are the RUNTIME GL stack for the headless GL smoke
# (Mesa surfaceless EGL + llvmpipe software GL; the engine and
# GLAD load them by dlopen at runtime) (M2-GL-01).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure (TSan)
run: cmake -S . -B build-tsan -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++ -DLAIGE_TSAN=ON
- name: Build (TSan)
run: cmake --build build-tsan -j
- name: Test (unit, TSan)
# TSAN_OPTIONS=halt_on_error=1 is applied per test by tests/
# (M0-BUILD-01), so the first data race report kills the test
# process and ctest fails. The race report is printed to stderr
# and captured by the tee below. -E excludes the >30 s entries
# that moved to the label-gated linux-tsan-slow job (2026-10-13
# split, see the header).
run: |
set -o pipefail
ctest --test-dir build-tsan --output-on-failure \
-E '^(laige-sim_tests|laige-render_tests|particle_render|zero_alloc|ecs_stress)$' \
2>&1 | tee tsan-ctest-output.txt
# ------------------------------------------------------------------------
# Slow suites (2026-10-13 split; see the header). Each job below is one
# ctest entry that exceeded 30 s in the latest master run: one dedicated
# job per suite per lane (the matrix context is not available in a
# job-level `if:`, so one block per suite). The main job's ctest
# excludes the entry, so it runs exactly once per gated run, here.
# ------------------------------------------------------------------------
linux-gcc-sim:
name: "Linux x64 (g++) slow: laige-sim_tests"
runs-on: ubuntu-24.04
# 20: build (~1.5 min) + laige-sim_tests (59.97 s in the evidence run),
# plus runner variance.
timeout-minutes: 20
if: contains(github.event.pull_request.labels.*.name, 'ci:slow:sim')
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# Same rationale as the main job (see linux-gcc).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=g++
- name: Build
run: cmake --build build -j
- name: "Test (slow: laige-sim_tests)"
run: ctest --test-dir build --output-on-failure -R '^laige-sim_tests$'
linux-gcc-render:
name: "Linux x64 (g++) slow: laige-render_tests"
runs-on: ubuntu-24.04
# 20: build (~1.5 min) + laige-render_tests (53.83 s in the evidence run),
# plus runner variance.
timeout-minutes: 20
if: contains(github.event.pull_request.labels.*.name, 'ci:slow:render')
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# Same rationale as the main job (see linux-gcc).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=g++
- name: Build
run: cmake --build build -j
- name: "Test (slow: laige-render_tests)"
run: ctest --test-dir build --output-on-failure -R '^laige-render_tests$'
linux-gcc-particle:
name: "Linux x64 (g++) slow: particle_render"
runs-on: ubuntu-24.04
# 20: build (~1.5 min) + particle_render (38.76 s in the evidence run),
# plus runner variance.
timeout-minutes: 20
if: contains(github.event.pull_request.labels.*.name, 'ci:slow:particle')
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# Same rationale as the main job (see linux-gcc).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=g++
- name: Build
run: cmake --build build -j
- name: "Test (slow: particle_render)"
run: ctest --test-dir build --output-on-failure -R '^particle_render$'
linux-gcc-bench-fpx16:
name: "Linux x64 (g++) slow bench: laige_bench_render_50k_fpx16 + laige_bench_ac4_fpx16"
runs-on: ubuntu-24.04
# 30: build (~1.5 min) + the render-50k bench (577.05 s in the evidence
# run) + the ac4 bench (estimated ~60 s, M2-AC-01) plus runner
# variance. The pre-split 45-min exception minus the rest of the suite.
timeout-minutes: 30
if: contains(github.event.pull_request.labels.*.name, 'ci:slow:bench-50k')
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# Same rationale as the main job (see linux-gcc).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=g++
- name: Build
run: cmake --build build -j
- name: "Test (slow bench: render-50k + ac4, fpx16)"
run: ctest --test-dir build --output-on-failure -R '^(laige_bench_render_50k_fpx16|laige_bench_ac4_fpx16)$'
linux-gcc-bench-fp32:
name: "Linux x64 (g++) slow bench: laige_bench_render_50k_fp32 + laige_bench_ac4_fp32"
runs-on: ubuntu-24.04
# 30: build (~1.5 min) + the render-50k bench (593.82 s in the evidence
# run) + the ac4 bench (estimated ~60 s, M2-AC-01) plus runner variance.
timeout-minutes: 30
if: contains(github.event.pull_request.labels.*.name, 'ci:slow:bench-50k')
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# Same rationale as the main job (see linux-gcc).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=g++
- name: Build
run: cmake --build build -j
- name: "Test (slow bench: render-50k + ac4, fp32)"
run: ctest --test-dir build --output-on-failure -R '^(laige_bench_render_50k_fp32|laige_bench_ac4_fp32)$'
linux-clang-sim:
name: "Linux x64 (clang++) slow: laige-sim_tests"
runs-on: ubuntu-24.04
# 20: build (~1.5 min) + laige-sim_tests (53.79 s in the evidence run),
# plus runner variance.
timeout-minutes: 20
if: contains(github.event.pull_request.labels.*.name, 'ci:slow:sim')
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# Same rationale as the main job (see linux-clang).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++
- name: Build
run: cmake --build build -j
- name: "Test (slow: laige-sim_tests)"
run: ctest --test-dir build --output-on-failure -R '^laige-sim_tests$'
linux-clang-render:
name: "Linux x64 (clang++) slow: laige-render_tests"
runs-on: ubuntu-24.04
# 20: build (~1.5 min) + laige-render_tests (44.45 s in the evidence run),
# plus runner variance.
timeout-minutes: 20
if: contains(github.event.pull_request.labels.*.name, 'ci:slow:render')
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# Same rationale as the main job (see linux-clang).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++
- name: Build
run: cmake --build build -j
- name: "Test (slow: laige-render_tests)"
run: ctest --test-dir build --output-on-failure -R '^laige-render_tests$'
linux-clang-particle:
name: "Linux x64 (clang++) slow: particle_render"
runs-on: ubuntu-24.04
# 20: build (~1.5 min) + particle_render (34.67 s in the evidence run),
# plus runner variance.
timeout-minutes: 20
if: contains(github.event.pull_request.labels.*.name, 'ci:slow:particle')
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# Same rationale as the main job (see linux-clang).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++
- name: Build
run: cmake --build build -j
- name: "Test (slow: particle_render)"
run: ctest --test-dir build --output-on-failure -R '^particle_render$'
linux-clang-bench-fpx16:
name: "Linux x64 (clang++) slow bench: laige_bench_render_50k_fpx16 + laige_bench_ac4_fpx16"
runs-on: ubuntu-24.04
# 30: build (~1.5 min) + the render-50k bench (578.42 s in the evidence
# run) + the ac4 bench (estimated ~60 s, M2-AC-01) plus runner variance.
timeout-minutes: 30
if: contains(github.event.pull_request.labels.*.name, 'ci:slow:bench-50k')
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# Same rationale as the main job (see linux-clang).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++
- name: Build
run: cmake --build build -j
- name: "Test (slow bench: render-50k + ac4, fpx16)"
run: ctest --test-dir build --output-on-failure -R '^(laige_bench_render_50k_fpx16|laige_bench_ac4_fpx16)$'
linux-clang-bench-fp32:
name: "Linux x64 (clang++) slow bench: laige_bench_render_50k_fp32 + laige_bench_ac4_fp32"
runs-on: ubuntu-24.04
# 30: build (~1.5 min) + the render-50k bench (566.52 s in the evidence
# run) + the ac4 bench (estimated ~60 s, M2-AC-01) plus runner variance.
timeout-minutes: 30
if: contains(github.event.pull_request.labels.*.name, 'ci:slow:bench-50k')
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# Same rationale as the main job (see linux-clang).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++
- name: Build
run: cmake --build build -j
- name: "Test (slow bench: render-50k + ac4, fp32)"
run: ctest --test-dir build --output-on-failure -R '^(laige_bench_render_50k_fp32|laige_bench_ac4_fp32)$'
linux-asan-sim:
name: "Linux x64 ASan+UBSan (clang++) slow: laige-sim_tests"
runs-on: ubuntu-24.04
# 20: build (~2.5 min) + laige-sim_tests (124.03 s in the evidence run),
# plus runner variance.
timeout-minutes: 20
if: contains(github.event.pull_request.labels.*.name, 'ci:slow:sim')
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# Same rationale as the main job (see linux-asan).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure (ASan+UBSan)
run: cmake -S . -B build-asan -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++ -DLAIGE_ASAN=ON
- name: Build (ASan+UBSan)
run: cmake --build build-asan -j
- name: "Test (slow: laige-sim_tests, ASan+UBSan)"
env:
ASAN_OPTIONS: "abort_on_error=1:halt_on_error=1:detect_leaks=1"
run: |
set -o pipefail
ctest --test-dir build-asan --output-on-failure \
-R '^laige-sim_tests$' 2>&1 | tee asan-ctest-output.txt
linux-asan-render:
name: "Linux x64 ASan+UBSan (clang++) slow: laige-render_tests"
runs-on: ubuntu-24.04
# 20: build (~2.5 min) + laige-render_tests (43.20 s in the evidence run),
# plus runner variance.
timeout-minutes: 20
if: contains(github.event.pull_request.labels.*.name, 'ci:slow:render')
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# Same rationale as the main job (see linux-asan).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure (ASan+UBSan)
run: cmake -S . -B build-asan -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++ -DLAIGE_ASAN=ON
- name: Build (ASan+UBSan)
run: cmake --build build-asan -j
- name: "Test (slow: laige-render_tests, ASan+UBSan)"
env:
ASAN_OPTIONS: "abort_on_error=1:halt_on_error=1:detect_leaks=1"
run: |
set -o pipefail
ctest --test-dir build-asan --output-on-failure \
-R '^laige-render_tests$' 2>&1 | tee asan-ctest-output.txt
linux-asan-zero-alloc:
name: "Linux x64 ASan+UBSan (clang++) slow: zero_alloc"
runs-on: ubuntu-24.04
# 20: build (~2.5 min) + zero_alloc (43.76 s in the evidence run),
# plus runner variance.
timeout-minutes: 20
if: contains(github.event.pull_request.labels.*.name, 'ci:slow:zero-alloc')
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# Same rationale as the main job (see linux-asan).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure (ASan+UBSan)
run: cmake -S . -B build-asan -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++ -DLAIGE_ASAN=ON
- name: Build (ASan+UBSan)
run: cmake --build build-asan -j
- name: "Test (slow: zero_alloc, ASan+UBSan)"
env:
ASAN_OPTIONS: "abort_on_error=1:halt_on_error=1:detect_leaks=1"
run: |
set -o pipefail
ctest --test-dir build-asan --output-on-failure \
-R '^zero_alloc$' 2>&1 | tee asan-ctest-output.txt
linux-asan-ecs-stress:
name: "Linux x64 ASan+UBSan (clang++) slow: ecs_stress"
runs-on: ubuntu-24.04
# 20: build (~2.5 min) + ecs_stress (42.87 s in the evidence run),
# plus runner variance.
timeout-minutes: 20
if: contains(github.event.pull_request.labels.*.name, 'ci:slow:ecs-stress')
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# Same rationale as the main job (see linux-asan).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure (ASan+UBSan)
run: cmake -S . -B build-asan -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++ -DLAIGE_ASAN=ON
- name: Build (ASan+UBSan)
run: cmake --build build-asan -j
- name: "Test (slow: ecs_stress, ASan+UBSan)"
env:
ASAN_OPTIONS: "abort_on_error=1:halt_on_error=1:detect_leaks=1"
run: |
set -o pipefail
ctest --test-dir build-asan --output-on-failure \
-R '^ecs_stress$' 2>&1 | tee asan-ctest-output.txt
linux-tsan-sim:
name: "Linux x64 TSan (clang++) slow: laige-sim_tests"
runs-on: ubuntu-24.04
# 20: build (~2 min) + laige-sim_tests (159.52 s in the evidence run),
# plus runner variance.
timeout-minutes: 20
if: contains(github.event.pull_request.labels.*.name, 'ci:slow:sim')
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# Same rationale as the main job (see linux-tsan).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure (TSan)
run: cmake -S . -B build-tsan -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++ -DLAIGE_TSAN=ON
- name: Build (TSan)
run: cmake --build build-tsan -j
- name: "Test (slow: laige-sim_tests, TSan)"
run: |
set -o pipefail
ctest --test-dir build-tsan --output-on-failure \
-R '^laige-sim_tests$' 2>&1 | tee tsan-ctest-output.txt
linux-tsan-render:
name: "Linux x64 TSan (clang++) slow: laige-render_tests"
runs-on: ubuntu-24.04
# 20: build (~2 min) + laige-render_tests (60.41 s in the evidence run),
# plus runner variance.
timeout-minutes: 20
if: contains(github.event.pull_request.labels.*.name, 'ci:slow:render')
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# Same rationale as the main job (see linux-tsan).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure (TSan)
run: cmake -S . -B build-tsan -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++ -DLAIGE_TSAN=ON
- name: Build (TSan)
run: cmake --build build-tsan -j
- name: "Test (slow: laige-render_tests, TSan)"
run: |
set -o pipefail
ctest --test-dir build-tsan --output-on-failure \
-R '^laige-render_tests$' 2>&1 | tee tsan-ctest-output.txt
linux-tsan-particle:
name: "Linux x64 TSan (clang++) slow: particle_render"
runs-on: ubuntu-24.04
# 20: build (~2 min) + particle_render (39.56 s in the evidence run),
# plus runner variance.
timeout-minutes: 20
if: contains(github.event.pull_request.labels.*.name, 'ci:slow:particle')
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# Same rationale as the main job (see linux-tsan).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure (TSan)
run: cmake -S . -B build-tsan -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++ -DLAIGE_TSAN=ON
- name: Build (TSan)
run: cmake --build build-tsan -j
- name: "Test (slow: particle_render, TSan)"
run: |
set -o pipefail
ctest --test-dir build-tsan --output-on-failure \
-R '^particle_render$' 2>&1 | tee tsan-ctest-output.txt
linux-tsan-zero-alloc:
name: "Linux x64 TSan (clang++) slow: zero_alloc"
runs-on: ubuntu-24.04
# 20: build (~2 min) + zero_alloc (54.75 s in the evidence run),
# plus runner variance.
timeout-minutes: 20
if: contains(github.event.pull_request.labels.*.name, 'ci:slow:zero-alloc')
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# Same rationale as the main job (see linux-tsan).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure (TSan)
run: cmake -S . -B build-tsan -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++ -DLAIGE_TSAN=ON
- name: Build (TSan)
run: cmake --build build-tsan -j
- name: "Test (slow: zero_alloc, TSan)"
run: |
set -o pipefail
ctest --test-dir build-tsan --output-on-failure \
-R '^zero_alloc$' 2>&1 | tee tsan-ctest-output.txt
linux-tsan-ecs-stress:
name: "Linux x64 TSan (clang++) slow: ecs_stress"
runs-on: ubuntu-24.04
# 20: build (~2 min) + ecs_stress (54.70 s in the evidence run),
# plus runner variance.
timeout-minutes: 20
if: contains(github.event.pull_request.labels.*.name, 'ci:slow:ecs-stress')
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# Same rationale as the main job (see linux-tsan).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure (TSan)
run: cmake -S . -B build-tsan -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++ -DLAIGE_TSAN=ON
- name: Build (TSan)
run: cmake --build build-tsan -j
- name: "Test (slow: ecs_stress, TSan)"
run: |
set -o pipefail
ctest --test-dir build-tsan --output-on-failure \
-R '^ecs_stress$' 2>&1 | tee tsan-ctest-output.txt
# ------------------------------------------------------------------------
# Golden reference regeneration (M2-GOLD-01)
#
# Label-gated job for the PR lane (label ci:golden-update): renders
# the golden fixtures in the reference environment (ubuntu-24.04,
# Debug, g++, Mesa surfaceless EGL + llvmpipe) and prints the
# resulting PNGs to the job log as single-line base64 between
# GOLDEN_REFERENCE_BEGIN / GOLDEN_REFERENCE_END markers. The
# committing human decodes, reviews, and commits the references (no
# artifact upload — the pull_request token is read-only for those).
# The workflow_dispatch-only .github/workflows/golden-update.yml is
# the same job for the post-merge master path (workflow_dispatch
# only sees workflows on the default branch, so a PR branch cannot
# be dispatched). docs/testing.md §6,
# tools/golden/references/README.md.
# ------------------------------------------------------------------------
golden-references:
name: Golden references (label-gated, ubuntu-24.04, g++, llvmpipe)
runs-on: ubuntu-24.04
# 30: build (~1.5 min) + four 1280x720 software-GL renders (the
# sprite + UI fixtures, and the two M2-AC-01 ac4 fixtures — two
# passes each, small scenes) + font rasterization, plus runner
# variance.
timeout-minutes: 30
if: contains(github.event.pull_request.labels.*.name, 'ci:golden-update')
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# Same rationale as the main job (see linux-gcc).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=g++
- name: Build laige-golden
run: cmake --build build --target laige-golden -j
- name: Render the references (--update, build directory)
# The references land in the build directory (never in the
# source tree — the source-tree copies are committed by a
# human from this job's log).
env:
LAIGE_TEST_FONT_PATH: ${{ github.workspace }}/tests/laige-render/assets/vera.ttf
run: |
mkdir -p build/golden-references
./build/bin/laige-golden --update --all \
--references build/golden-references
- name: Verify determinism (in-run compare)
# The freshly rendered frames must compare against themselves
# within the documented tolerance: a red here means the
# environment is not deterministic (or the tolerance contract
# broke), and the run's references must not be trusted.
env:
LAIGE_TEST_FONT_PATH: ${{ github.workspace }}/tests/laige-render/assets/vera.ttf
run: |
./build/bin/laige-golden --all \
--references build/golden-references \
--max-channel-diff 2 --pixel-budget-pct 0.001
- name: Print the references (base64, for log extraction)
# One block per fixture: the BEGIN/END markers carry the
# fixture name (the reference file is <fixture>.png); the
# base64 is a single line (base64 -w0).
run: |
for f in build/golden-references/*.png; do
name=$(basename "$f" .png)
echo "GOLDEN_REFERENCE_BEGIN $name"
base64 -w0 "$f"
echo
echo "GOLDEN_REFERENCE_END $name"
done
windows-msvc:
name: Windows x64 (MSVC 2022)
runs-on: windows-2022
# Unchanged by the 2026-10-13 slow-suite split: no ctest entry
# exceeds 30 s on this lane (worst: laige-sim_tests 16.71 s in the
# evidence run), so the full suite stays in the main job.
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Configure
# CMAKE_BUILD_TYPE is ignored by the multi-config VS generator; the
# Debug configuration is pinned on the build/test steps below.
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug
- name: Build
run: cmake --build build --config Debug -j
- name: Test (unit)
# The trait_compile_* fixtures invoke cl.exe DIRECTLY from a
# generated cmake -P script (execute_process), outside the VS
# generator's toolchain setup, so — unlike every other test in
# this job — they need the MSVC environment (INCLUDE/LIB/PATH)
# to find the CRT/STL headers; the plain runner shell lacks it
# and cl fails with C1083 on <cstdint> etc. This step imports
# the VS development environment into the current PowerShell
# process: vswhere locates the installation, VsDevCmd.bat (the
# canonical vcvars, present in every VS 2017+ install under
# Common7\Tools — called by relative name from that directory,
# so no path quoting is involved) sets it, and its `set` dump
# is imported variable by variable. ctest, cmake -P, and cl all
# inherit it. Everything else in this step is unchanged.
run: |
$vs = & "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -products * -property installationPath
Push-Location (Join-Path $vs "Common7\Tools")
$envDump = cmd /c "call VsDevCmd.bat -arch=amd64 -host_arch=amd64 >nul && set"
Pop-Location
foreach ($line in $envDump) {
if ($line -match '^([A-Za-z_][A-Za-z0-9_]*)=(.*)$') {
Set-Item -Path "env:$($matches[1])" -Value $matches[2]
}
}
ctest --test-dir build -C Debug --output-on-failure
macos-arm64:
name: macOS arm64 (AppleClang)
runs-on: macos-15
# The shared macOS runners' tail latency exceeds the 10-min build
# budget (the macOS exception, documented in ci.yml's header).
# Unchanged by the 2026-10-13 slow-suite split: no ctest entry
# exceeds 30 s on this lane (worst: laige-sim_tests 21.60 s in the
# evidence run), so the full suite stays in the main job.
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- name: Configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug
- name: Build
run: cmake --build build -j
- name: Test (unit)
run: ctest --test-dir build --output-on-failure
macos-intel:
name: macOS Intel (AppleClang)
runs-on: macos-14
# The shared macOS runners' tail latency exceeds the 10-min build
# budget (the macOS exception, documented in ci.yml's header).
# Unchanged by the 2026-10-13 slow-suite split: no ctest entry
# exceeds 30 s on this lane (worst: laige-sim_tests 27.11 s in the
# evidence run), so the full suite stays in the main job.
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- name: Configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug
- name: Build
run: cmake --build build -j
- name: Test (unit)
run: ctest --test-dir build --output-on-failure
include-lint:
# M0-CI-03: runs on every PR. Platform-independent: the lint is
# Python 3 stdlib only (no setup step needed) and checks the
# repository layout, not a compiler-specific build. The CTest
# suite runs it against the real tree in every P0 job as well
# (tests/tools, test `include-lint-real-tree`), so a broken include
# fails every job, not just this one.
name: Include-graph lint + dependency count
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- name: Lint include graph + report dependency count
run: python3 tools/laige-include-lint
determinism-lint:
# M1-DET-01: runs on every PR. The sim-source determinism scan
# (the second half of the G-R8 guarantee; the first is the
# compile-time trait checked by the trait_compile_* CTest
# fixtures): forbids raw float/double and unordered containers in
# src/laige-sim/**, with per-line LAIGE-DETERM-EXCEPTION markers as
# the documented false-positive policy (docs/concepts/determinism.md).
# Platform-independent: Python 3 stdlib only, no setup step. The
# CTest suite runs it against the real tree in every P0 job as well
# (tests/tools, tests `determinism-lint-*`).
name: Determinism source scan (sim module)
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- name: Scan sim sources for raw FP / unordered containers
run: python3 tools/laige-determinism-lint
api-manifest:
# M0-TOOL-01: runs on every PR. The checked-in public API manifest
# (laige-api.json, PRD §9.4, NFR-13.1) must stay in sync with the
# public headers: this job regenerates it from the current headers
# with laige-api-scanner and fails on any drift, so adding a public
# symbol without regenerating the manifest fails CI. The CTest
# suite runs the same check against the real tree in every P0 job
# as well (tests/api, test `api-real-tree`).
name: Public API manifest drift
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# GLFW's X11 backend (GLFW_BUILD_WAYLAND=OFF in src/laige-render/
# CMakeLists.txt) needs only the X11 *headers* at configure time
# (GLFW 3.5 dlopens the X11/GL libraries at runtime); the
# ubuntu-24.04 runner image ships none of them. The libegl/libgl
# packages are the RUNTIME GL stack for the headless GL smoke
# (Mesa surfaceless EGL + llvmpipe software GL; the engine and
# GLAD load them by dlopen at runtime) (M2-GL-01).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug
- name: Build scanner
run: cmake --build build --target laige-api-scanner -j
- name: Check manifest drift
run: ./build/bin/laige-api-scanner --root . --check laige-api.json
detcheck:
# M1-DET-04: runs on every PR. The determinism checker (FR-11.5):
# the built-in synthetic scenario self-check, then the M1-SAMPLE-01
# hello scenario asserted against the committed per-tick hash
# baselines (samples/hello/baselines/) on BOTH SimMath backends