Repository navigation
1529 lines (1333 loc) · 64.9 KB
/
Copy pathphar.yml
File metadata and controls
1529 lines (1333 loc) · 64.9 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
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
name: "Compile PHAR"
on:
pull_request:
push:
branches:
- "2.2.x"
tags:
- '2.2.*'
concurrency:
group: phar-${{ github.ref }} # will be canceled on subsequent pushes in both branches and pull requests
cancel-in-progress: true
# Read-only GITHUB_TOKEN everywhere; jobs needing more declare their own
# block. The commit job pushes with a PAT, not the workflow token.
permissions:
contents: read
env:
# The php-parser version whose grammar tables and semantic actions the
# native parser engine (turbo-ext/src/parser/) was ported against.
SUPPORTED_PHP_PARSER_VERSION: "v5.8.0"
# Composer for the turbo container legs, pinned by checksum. The distro
# composers are unusable there: jammy's 2.2.6 fatals under PHP 8.5, and
# Alpine's /usr/bin/composer is a shell wrapper hardwired to the
# distro-default PHP.
COMPOSER_VERSION: "2.9.2"
COMPOSER_PHAR_SHA256: "471f2d857abf0ec18af7b055e61472214d91adb24f9bdbbb864c1c64faad7dd6"
jobs:
compiler-tests:
name: "Compiler Tests"
runs-on: "ubuntu-latest"
timeout-minutes: 60
permissions:
contents: read # actions/checkout of this repository
pull-requests: read # dorny/paths-filter lists the PR's changed files through the API
outputs:
checksum: ${{ steps.checksum.outputs.md5 }}
compiler_changed: ${{ steps.changes.outputs.compiler }}
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0
with:
egress-policy: audit
- name: "Checkout"
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
persist-credentials: false
fetch-depth: 0
- name: "Install PHP"
uses: "shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240" # 2.37.2
with:
coverage: "none"
php-version: "8.2"
extensions: mbstring, intl
- uses: "ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda" # v4.0.0
with:
ignore-cache: true
# only sebastian/diff ^4 supports PHP 7.4 so we need that in the PHAR
- name: "Downgrade PHPUnit"
run: "composer require --dev phpunit/phpunit:^9.6 sebastian/diff:^4.0 doctrine/instantiator:^1.0 --update-with-dependencies --ignore-platform-reqs"
- name: "Install compiler dependencies"
uses: "ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda" # v4.0.0
with:
working-directory: "compiler"
ignore-cache: true
- name: "Compiler tests"
working-directory: "compiler"
run: "vendor/bin/phpunit -c tests/phpunit.xml tests"
- name: "Compiler PHPStan"
working-directory: "compiler"
run: "vendor/bin/phpstan analyse -l 8 src tests"
- name: "Prepare for PHAR compilation"
working-directory: "compiler"
run: "php bin/prepare"
- name: "Dump autoloader one more time for attributes"
run: "composer dump"
- name: "Install Box dependencies"
uses: "ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda" # v4.0.0
with:
working-directory: "compiler/box"
ignore-cache: true
- name: "Compile PHAR"
working-directory: "compiler/build"
run: "php ../box/vendor/bin/box compile --no-parallel --sort-compiled-files"
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: phar-file
path: tmp/phpstan.phar
- name: "Run PHAR"
working-directory: "compiler"
run: "../tmp/phpstan.phar list"
- name: "Delete PHAR"
run: "rm tmp/phpstan.phar"
- name: "Set autoloader suffix"
run: "composer config autoloader-suffix PHPStanChecksum"
- uses: "ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda" # v4.0.0
env:
COMPOSER_ROOT_VERSION: "2.2.x-dev"
with:
ignore-cache: true
- name: "Compile PHAR for checksum"
working-directory: "compiler/build"
run: "php ../box/vendor/bin/box compile --no-parallel --sort-compiled-files"
env:
PHAR_CHECKSUM: "1"
COMPOSER_ROOT_VERSION: "2.2.x-dev"
- name: "Re-sign PHAR"
run: "php compiler/build/resign.php tmp/phpstan.phar"
- name: "Unset autoloader suffix"
run: "composer config autoloader-suffix --unset"
- name: "Save checksum"
id: "checksum"
run: echo "md5=$(md5sum tmp/phpstan.phar | cut -d' ' -f1)" >> "$GITHUB_OUTPUT"
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: phar-file-checksum
path: tmp/phpstan.phar
- name: "Delete checksum PHAR"
run: "rm tmp/phpstan.phar"
- uses: dorny/paths-filter@7b450fff21473bca461d4b92ce414b9d0420d706 # v4.0.2
id: changes
with:
filters: |
compiler:
- 'compiler/**'
- '.github/workflows/phar.yml'
- '.github/scripts/**'
turbo-version:
name: "Turbo Extension Version Check"
runs-on: "ubuntu-latest"
timeout-minutes: 5
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0
with:
egress-policy: audit
- name: "Checkout"
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
persist-credentials: false
fetch-depth: 0 # git log over turbo-ext/src needs full history
- name: "Install PHP"
uses: "shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240" # v2.37.2
with:
coverage: "none"
php-version: "8.5"
# side-by-side.php collects the attributes with reflection against the
# dumped autoloader and byte-compares the generated vendor/turbo-* files
- uses: "ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda" # v4.0.0
with:
ignore-cache: true
- name: "Check the shadowed PHP and C++ implementations are in sync (method parity)"
run: "php turbo-ext/bin/side-by-side.php"
- name: "Check the vendored php-parser matches the version the native parser engine was ported against"
run: |
INSTALLED="$(jq -r '.packages[] | select(.name == "nikic/php-parser") | .version' composer.lock)"
echo "composer.lock: $INSTALLED, native engine ported against: $SUPPORTED_PHP_PARSER_VERSION"
if [ "$INSTALLED" != "$SUPPORTED_PHP_PARSER_VERSION" ]; then
echo "::error::nikic/php-parser was updated to $INSTALLED but turbo-ext/src/parser/ was ported against $SUPPORTED_PHP_PARSER_VERSION."
echo "::error::Update procedure: diff ParserAbstract.php helpers between the two versions (grammar tables need nothing — they are read at run time), run turbo-ext/bin/generate-parser-actions.php and port any flagged closure bodies via action-overrides/, run turbo-ext/tests/parser-corpus.php until byte-identical, run the full suite, then bump SUPPORTED_PHP_PARSER_VERSION here and the extension version pin."
exit 1
fi
- name: "Check TurboExtensionEnabler::EXPECTED_EXTENSION_VERSION against the last commit touching turbo-ext/src"
run: |
EXPECTED_SHA="$(git log -1 --format=%H -- turbo-ext/src | cut -c1-7)"
ENABLER="$(sed -n "s/.*EXPECTED_EXTENSION_VERSION = '\([^']*\)'.*/\1/p" src/Turbo/TurboExtensionEnabler.php)"
echo "last commit touching turbo-ext/src: $EXPECTED_SHA"
echo "TurboExtensionEnabler::EXPECTED_EXTENSION_VERSION: $ENABLER"
if [ "$ENABLER" != "$EXPECTED_SHA" ]; then
echo "::error::TurboExtensionEnabler::EXPECTED_EXTENSION_VERSION must be the short SHA of the last commit touching turbo-ext/src/."
echo "::error::After changing the native side, verify the implementations still match and add a follow-up commit setting the constant to that commit's short SHA (the binary bakes its version from git at build time). Compute it only after the change lands on the target branch — a pull request commit gets a new SHA when rebased."
exit 1
fi
# VERSION.txt is generated into the phpstan/turbo-ext subsplit by
# subsplit-turbo-ext.yml; a copy committed here would go stale and
# silently win over git in phpize builds.
if [ -e turbo-ext/VERSION.txt ]; then
echo "::error::turbo-ext/VERSION.txt must not exist in the monorepo — it is generated per replayed commit by the subsplit-turbo-ext.yml workflow."
exit 1
fi
turbo-phpize:
# Builds through phpize && ./configure && make — the pipeline PIE drives
# when it falls back to a source build of the phpstan/turbo package
# (config.m4). The distributed binaries keep coming from the Makefile
# legs in turbo-compile: the libtool link here cannot statically fold
# libstdc++/libgcc into the .so, which the shipped Linux binaries need
# to stay independent of the host's GLIBCXX symbol versions. One PHP
# version suffices — per-version compile coverage comes from
# turbo-compile; this job guards the build system itself.
name: "Turbo Extension phpize Build"
runs-on: ${{ matrix.operating-system }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
operating-system: ["ubuntu-latest", "macos-latest"]
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0
with:
egress-policy: audit
- name: "Checkout"
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
persist-credentials: false
fetch-depth: 0 # the VERSION.txt written below bakes from git log over turbo-ext/src
- name: "Install PHP"
uses: "shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240" # v2.37.2
with:
coverage: "none"
php-version: "8.5"
- name: "Build via phpize outside the checkout"
# The copy is deliberately outside the git checkout and gets a
# VERSION.txt generated the same way subsplit-turbo-ext.yml commits
# it into phpstan/turbo-ext — the exact shape a PIE source build
# sees: no monorepo history, the version supplied by the file.
run: |
if [ "$RUNNER_OS" = "macOS" ]; then
command -v autoconf > /dev/null || brew install autoconf
fi
cp -R turbo-ext "$RUNNER_TEMP/turbo-ext"
git log -1 --format=%H -- turbo-ext/src | cut -c1-7 > "$RUNNER_TEMP/turbo-ext/VERSION.txt"
echo "VERSION.txt: $(cat "$RUNNER_TEMP/turbo-ext/VERSION.txt")"
cd "$RUNNER_TEMP/turbo-ext"
phpize
./configure
make -j"$(getconf _NPROCESSORS_ONLN)"
- name: "Verify the built extension reports the expected version"
run: |
REPORTED="$(php -d extension="$RUNNER_TEMP/turbo-ext/modules/phpstan_turbo.so" -r 'echo phpversion("phpstan_turbo");')"
EXPECTED="$(sed -n "s/.*EXPECTED_EXTENSION_VERSION = '\([^']*\)'.*/\1/p" src/Turbo/TurboExtensionEnabler.php)"
echo "built extension reports: $REPORTED, enabler expects: $EXPECTED"
[ "$REPORTED" = "$EXPECTED" ]
- uses: "ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda" # v4.0.0
with:
ignore-cache: true
- name: "Smoke test (differential: native vs PHP implementations)"
run: php -d extension="$RUNNER_TEMP/turbo-ext/modules/phpstan_turbo.so" turbo-ext/tests/smoke.php
- name: "Arena smoke test (cross-process shared-memory records)"
# the test's child processes locate the extension through TURBO_DLL —
# its default, turbo-ext/phpstan_turbo.so, only exists in Makefile builds
env:
TURBO_DLL: ${{ runner.temp }}/turbo-ext/modules/phpstan_turbo.so
run: php -d extension="$RUNNER_TEMP/turbo-ext/modules/phpstan_turbo.so" turbo-ext/tests/arena-smoke.php
- name: "Signature parity (reflect native classes against the PHP twins)"
run: php -d extension="$RUNNER_TEMP/turbo-ext/modules/phpstan_turbo.so" turbo-ext/tests/signature-parity.php
- name: "Parser corpus (differential: native vs PHP ASTs must be byte-identical)"
run: php -d extension="$RUNNER_TEMP/turbo-ext/modules/phpstan_turbo.so" -d memory_limit=4G turbo-ext/tests/parser-corpus.php
- name: "make install into a scratch root (PIE finishes with make install)"
run: |
make -C "$RUNNER_TEMP/turbo-ext" install INSTALL_ROOT="$RUNNER_TEMP/install-root"
find "$RUNNER_TEMP/install-root" -name 'phpstan_turbo.so' | grep .
turbo-compile:
name: "Compile Turbo Extension"
runs-on: ${{ matrix.target.runs-on }}
# Container legs pin the built binaries' userland floor independently of
# the runner image. The gnu legs run in a prebuilt ubuntu:22.04-based
# image (.github/turbo-build/Dockerfile, published to GHCR by
# turbo-build-image.yml) with the PHP toolchain baked in: the glibc
# symbol floor stays at 2.34 (RHEL 9, Ubuntu 22.04+, Debian 12+) and the
# jobs run no apt at all — ports.ubuntu.com (the only Ubuntu arm64
# mirror) has repeated outages that failed the arm64 legs, and the
# from-scratch PPA setup cost ~1 minute on every x86_64 leg. alpine:3.24
# builds the musl variant; apk installs take seconds from a CDN, so no
# prebuilt image is needed there. The linux-musl-arm64 leg lives in the
# separate turbo-compile-musl-arm64 job below: JavaScript-based actions
# cannot run in Alpine containers on arm64 runners (the runner only
# ships an x64 musl Node), so that job drives the Alpine container
# through docker exec instead of a `container:` leg. The ZTS legs (for
# hosts with a thread-safe PHP, like PMMP's bundled build) run directly
# on ubuntu-22.04 runners — same glibc floor — because no distro
# packages ZTS PHP (neither ppa:ondrej/php nor Alpine); setup-php
# provides thread-safe builds. No musl ZTS for the same packaging
# reason.
container: ${{ matrix.target.family == 'gnu' && format('ghcr.io/phpstan/turbo-build:gnu-php{0}', matrix.php-version) || matrix.target.container }}
timeout-minutes: 30
env:
PHP_MINOR: ${{ matrix.php-version }}
strategy:
fail-fast: false
matrix:
php-version: ["8.3", "8.4", "8.5"]
target:
- name: "linux-gnu-x86_64"
runs-on: "ubuntu-latest"
family: "gnu"
artifact: "phpstan_turbo"
- name: "linux-gnu-arm64"
runs-on: "ubuntu-24.04-arm"
family: "gnu"
artifact: "phpstan_turbo"
- name: "linux-musl-x86_64"
runs-on: "ubuntu-latest"
container: "alpine:3.24"
family: "musl"
artifact: "phpstan_turbo"
- name: "linux-gnu-x86_64"
runs-on: "ubuntu-22.04"
family: "zts"
artifact: "phpstan_turbo"
suffix: "-zts"
- name: "linux-gnu-arm64"
runs-on: "ubuntu-22.04-arm"
family: "zts"
artifact: "phpstan_turbo"
suffix: "-zts"
# The macOS slices are merged into one universal binary (and ad-hoc
# signed) by the turbo-macos-universal job below, so their artifacts
# carry the turbo-slice prefix that the phpstan_turbo-* download
# patterns in the aggregate and commit jobs do not match.
- name: "macos-x86_64"
runs-on: "macos-15-intel" # the last x86_64 macOS image, available until August 2027
family: "macos"
artifact: "turbo-slice"
- name: "macos-arm64"
runs-on: "macos-latest"
family: "macos"
artifact: "turbo-slice"
steps:
- name: Harden the runner (Audit all outbound calls)
if: matrix.target.family == 'macos'
uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0
with:
egress-policy: audit
# The Alpine leg installs PHP and tooling before checkout:
# actions/checkout needs git inside the container, and the build needs
# php/php-config symlinks pointing at the matrix PHP version. The gnu
# legs need no install step — their prebuilt turbo-build image bakes
# all of this in.
- name: "Install PHP and build tools (Alpine container)"
if: matrix.target.family == 'musl'
run: |
V="$(echo "$PHP_MINOR" | tr -d .)"
apk add --no-cache bash curl git make g++ musl-dev linux-headers patch tar zstd \
"php$V" "php$V-dev" "php$V-ctype" "php$V-curl" "php$V-mbstring" \
"php$V-tokenizer" "php$V-iconv" "php$V-openssl" "php$V-phar" \
"php$V-dom" "php$V-xml" "php$V-xmlwriter" "php$V-simplexml"
ln -sf "/usr/bin/php$V" /usr/local/bin/php
ln -sf "/usr/bin/php-config$V" /usr/local/bin/php-config
- name: "Checkout"
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
persist-credentials: false
# The Makefile bakes the extension version via git log over the
# watched paths; a shallow clone would resolve every build to the
# checked-out commit itself — on pull requests the synthetic merge
# commit, which matches nothing.
fetch-depth: 0
# In container legs the workspace volume is owned by the host runner
# user while steps run as the container user, so git refuses the repo
# ("dubious ownership") — which would silently bake the version as
# "dev" via the Makefile's $(shell git log ...) fallback.
- name: "Trust the checkout despite the container/host uid mismatch"
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: "Install PHP (macOS)"
if: matrix.target.family == 'macos'
uses: "shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240" # v2.37.2
with:
coverage: "none"
php-version: "${{ matrix.php-version }}"
- name: "Install PHP (ZTS runner)"
if: matrix.target.family == 'zts'
uses: "shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240" # v2.37.2
env:
phpts: "ts"
with:
coverage: "none"
php-version: "${{ matrix.php-version }}"
# Guards against setup-php silently falling back to an NTS build,
# which would ship an NTS binary under the -zts name.
- name: "Verify the interpreter is thread-safe"
if: matrix.target.family == 'zts'
run: "php -r 'exit((bool) PHP_ZTS ? 0 : 1);'"
- name: "Compile phpstan_turbo with strict warnings"
working-directory: "turbo-ext"
# Exemptions, each caused by third-party macro expansions, not our code:
# -Wno-assume: zend's parameter-parsing macros expand __builtin_assume
# with (potential) side effects
# -Wno-unused-parameter: PHP_METHOD's fixed signature
# (execute_data/return_value are not used by every method)
# -Wno-unicode: zend arginfo macros stringify namespaced class names;
# clang lexes the \N in "PhpParser\NodeVisitor" as a universal
# character name (GCC ignores the unknown -Wno- flag)
run: |
make WARN_FLAGS="-Wall -Wextra -Werror -Wno-assume -Wno-unused-parameter -Wno-unicode" -j"$(getconf _NPROCESSORS_ONLN 2>/dev/null || nproc)"
- name: "Verify the built extension reports the expected version"
run: |
REPORTED="$(php -d extension="$PWD/turbo-ext/phpstan_turbo.so" -r 'echo phpversion("phpstan_turbo");')"
EXPECTED="$(sed -n "s/.*EXPECTED_EXTENSION_VERSION = '\([^']*\)'.*/\1/p" src/Turbo/TurboExtensionEnabler.php)"
echo "built extension reports: $REPORTED, enabler expects: $EXPECTED"
[ "$REPORTED" = "$EXPECTED" ]
- uses: "ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda" # v4.0.0
if: matrix.target.family == 'macos'
with:
ignore-cache: true
- name: "Install Composer dependencies (pinned composer)"
if: matrix.target.family != 'macos'
# checksum-pinned composer, run under the matrix PHP so platform
# requirements are validated against the interpreter the tests below
# run on. COMPOSER_HOME is isolated: on the runner (ZTS) legs,
# setup-php seeds ~/.composer/auth.json with the workflow's GitHub
# token, which this pinned composer rejects at startup ("github oauth
# token contains invalid characters") — everything here comes from
# packagist dists, no auth needed.
run: |
curl -fsSLo composer.phar "https://getcomposer.org/download/$COMPOSER_VERSION/composer.phar"
echo "$COMPOSER_PHAR_SHA256 composer.phar" | sha256sum -c -
COMPOSER_HOME="$(mktemp -d)" php composer.phar install --no-interaction --no-progress
rm composer.phar
- name: "Smoke test (differential: native vs PHP implementations)"
run: php -d extension="$PWD/turbo-ext/phpstan_turbo.so" turbo-ext/tests/smoke.php
- name: "Arena smoke test (cross-process shared-memory records)"
run: php -d extension="$PWD/turbo-ext/phpstan_turbo.so" turbo-ext/tests/arena-smoke.php
- name: "Signature parity (reflect native classes against the PHP twins)"
run: php -d extension="$PWD/turbo-ext/phpstan_turbo.so" turbo-ext/tests/signature-parity.php
- name: "Parser actions are generated (regenerate and diff)"
run: |
php turbo-ext/bin/generate-parser-actions.php
git diff --exit-code turbo-ext/src/parser/
- name: "Parser corpus (differential: native vs PHP ASTs must be byte-identical)"
run: php -d extension="$PWD/turbo-ext/phpstan_turbo.so" -d memory_limit=4G turbo-ext/tests/parser-corpus.php
- name: "Upload extension artifact"
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: "${{ matrix.target.artifact }}-${{ matrix.target.name }}-php${{ matrix.php-version }}${{ matrix.target.suffix }}"
path: "turbo-ext/phpstan_turbo.so"
if-no-files-found: "error"
turbo-compile-musl-arm64:
name: "Compile Turbo Extension (musl arm64)"
# The arm64 counterpart of the linux-musl-x86_64 leg in turbo-compile.
# It cannot be a `container: alpine` leg there: JavaScript-based actions
# cannot run in Alpine containers on arm64 runners (the runner only
# ships an x64 musl Node). Instead the workflow steps run on the arm64
# host and only the build and test commands run inside a long-lived
# Alpine container via docker exec — native arm64, no QEMU. The steps
# mirror the musl leg of turbo-compile one for one.
runs-on: "ubuntu-24.04-arm"
timeout-minutes: 30
env:
PHP_MINOR: ${{ matrix.php-version }}
strategy:
fail-fast: false
matrix:
php-version: ["8.3", "8.4", "8.5"]
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0
with:
egress-policy: audit
- name: "Checkout"
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
persist-credentials: false
# The Makefile bakes the extension version via git log over the
# watched paths; a shallow clone would resolve every build to the
# checked-out commit itself — on pull requests the synthetic merge
# commit, which matches nothing.
fetch-depth: 0
- name: "Start the Alpine build container"
run: |
docker run -d --name alpine-build \
-v "$PWD:/work" -w /work \
-e PHP_MINOR -e COMPOSER_VERSION -e COMPOSER_PHAR_SHA256 \
alpine:3.24 sleep 7200
- name: "Install PHP and build tools"
run: |
docker exec -i alpine-build sh -e <<'EOF'
V="$(echo "$PHP_MINOR" | tr -d .)"
apk add --no-cache bash curl git make g++ musl-dev linux-headers patch tar zstd \
"php$V" "php$V-dev" "php$V-ctype" "php$V-curl" "php$V-mbstring" \
"php$V-tokenizer" "php$V-iconv" "php$V-openssl" "php$V-phar" \
"php$V-dom" "php$V-xml" "php$V-xmlwriter" "php$V-simplexml"
ln -sf "/usr/bin/php$V" /usr/local/bin/php
ln -sf "/usr/bin/php-config$V" /usr/local/bin/php-config
EOF
# The workspace volume is owned by the host runner user while the
# container runs as root, so git refuses the repo ("dubious
# ownership") — which would silently bake the version as "dev" via
# the Makefile's $(shell git log ...) fallback.
- name: "Trust the checkout despite the container/host uid mismatch"
run: docker exec alpine-build git config --global --add safe.directory /work
- name: "Compile phpstan_turbo with strict warnings"
run: |
docker exec -i -w /work/turbo-ext alpine-build sh -e <<'EOF'
make WARN_FLAGS="-Wall -Wextra -Werror -Wno-assume -Wno-unused-parameter -Wno-unicode" -j"$(getconf _NPROCESSORS_ONLN 2>/dev/null || nproc)"
EOF
- name: "Verify the built extension reports the expected version"
run: |
docker exec -i alpine-build sh -e <<'EOF'
REPORTED="$(php -d extension="$PWD/turbo-ext/phpstan_turbo.so" -r 'echo phpversion("phpstan_turbo");')"
EXPECTED="$(sed -n "s/.*EXPECTED_EXTENSION_VERSION = '\([^']*\)'.*/\1/p" src/Turbo/TurboExtensionEnabler.php)"
echo "built extension reports: $REPORTED, enabler expects: $EXPECTED"
[ "$REPORTED" = "$EXPECTED" ]
EOF
- name: "Install Composer dependencies (pinned composer)"
run: |
docker exec -i alpine-build sh -e <<'EOF'
curl -fsSLo composer.phar "https://getcomposer.org/download/$COMPOSER_VERSION/composer.phar"
echo "$COMPOSER_PHAR_SHA256 composer.phar" | sha256sum -c -
COMPOSER_HOME="$(mktemp -d)" php composer.phar install --no-interaction --no-progress
rm composer.phar
EOF
- name: "Smoke test (differential: native vs PHP implementations)"
run: docker exec alpine-build php -d extension=/work/turbo-ext/phpstan_turbo.so turbo-ext/tests/smoke.php
- name: "Arena smoke test (cross-process shared-memory records)"
run: docker exec alpine-build php -d extension=/work/turbo-ext/phpstan_turbo.so turbo-ext/tests/arena-smoke.php
- name: "Signature parity (reflect native classes against the PHP twins)"
run: docker exec alpine-build php -d extension=/work/turbo-ext/phpstan_turbo.so turbo-ext/tests/signature-parity.php
- name: "Parser actions are generated (regenerate and diff)"
run: |
docker exec -i alpine-build sh -e <<'EOF'
php turbo-ext/bin/generate-parser-actions.php
git diff --exit-code turbo-ext/src/parser/
EOF
- name: "Parser corpus (differential: native vs PHP ASTs must be byte-identical)"
run: docker exec alpine-build php -d extension=/work/turbo-ext/phpstan_turbo.so -d memory_limit=4G turbo-ext/tests/parser-corpus.php
- name: "Upload extension artifact"
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: "phpstan_turbo-linux-musl-arm64-php${{ matrix.php-version }}"
path: "turbo-ext/phpstan_turbo.so"
if-no-files-found: "error"
turbo-docker-run:
name: "Run with Turbo Extension (Docker PHP builds)"
needs: "turbo-compile"
# The docker-library php images build the official php.net tarballs
# without regenerating the parser, so their runtime can differ from the
# distro/setup-php builds the .so artifacts are compiled against and
# that turbo-run exercises. The canonical incident is the T_* token
# numbering (https://github.com/phpstan/phpstan/issues/15037): the
# userland token ids are assigned by the bison that generated the
# tarball's zend_language_parser.c — the 8.3.21 tarball ships the
# Bison 3.8.2 numbering, the 8.3.22 one the Bison 3.0.4 numbering —
# and with ids baked in at compile time the extension silently dropped
# every comment, and with them every PHPDoc, on the other numbering's
# builds. The next incompatibility of that kind will not announce
# itself in a probe written for the last one, so this job loads the
# freshly built extension into docker-library images and runs the same
# make tests + make phpstan as turbo-run: any turbo-vs-environment
# mismatch fails ordinary tests (verified against the pre-fix
# token-numbering bug: 2462 of 21065 tests fail and self-analysis
# crashes on the Bison 3.0.4 image, both green on the matched one).
# The 8.3 images are pinned to one release of each known numbering;
# 8.4/8.5 float on the minor tag on purpose so that a future patch
# release with a surprising build is picked up on the next run without
# a workflow change. Legs run on linux-gnu-x86_64 only: the token
# numbering comes from the bison that generated the tarball's parser,
# not from arch or libc, and per-arch coverage stays with turbo-run
# and the compile jobs. No macOS/Windows legs: those runners cannot
# run Linux containers, and no alternative-numbered official build is
# distributed for either platform today.
runs-on: "ubuntu-latest"
timeout-minutes: 60
permissions:
contents: read
strategy:
fail-fast: false
matrix:
image:
- "php:8.3.21-cli-bookworm"
- "php:8.3.22-cli-bookworm"
- "php:8.4-cli-bookworm"
- "php:8.5-cli-bookworm"
check: ["tests", "phpstan"]
include:
- image: "php:8.3.21-cli-bookworm"
php-version: "8.3"
- image: "php:8.3.22-cli-bookworm"
php-version: "8.3"
- image: "php:8.4-cli-bookworm"
php-version: "8.4"
- image: "php:8.5-cli-bookworm"
php-version: "8.5"
# The tests legs invoke paratest directly instead of a literal
# `make tests`: its install-paratest step needs a composer, which
# the images do not carry — tests/vendor is installed on the
# runner host below, the same way tests.yml runs the suite.
- check: "tests"
script: "php tests/vendor/bin/paratest --runner WrapperRunner --no-coverage"
- check: "phpstan"
script: "make phpstan"
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0
with:
egress-policy: audit
- name: "Checkout"
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
persist-credentials: false
# vendor/ (and tests/vendor for the tests legs) is installed on the
# runner host and only read from the mounted workspace: the
# docker-library images carry neither a composer nor an unzip.
- name: "Install PHP"
uses: "shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240" # v2.37.2
with:
coverage: "none"
php-version: "${{ matrix.php-version }}"
- uses: "ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda" # v4.0.0
with:
ignore-cache: true
- name: "Install paratest"
if: matrix.check == 'tests'
run: composer install --working-dir tests
- name: "Download extension artifact"
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: "phpstan_turbo-linux-gnu-x86_64-php${{ matrix.php-version }}"
path: "turbo-ext"
# Fast fail with a one-line diagnosis: a token-numbering mismatch
# would otherwise surface as thousands of unrelated-looking failures
# in the suite run below.
- name: "Token-id probe in ${{ matrix.image }}"
env:
IMAGE: ${{ matrix.image }}
run: docker run --rm -v "$PWD:/work" -w /work "$IMAGE" php -d extension=/work/turbo-ext/phpstan_turbo.so turbo-ext/tests/token-id-probe.php
# Bind-mounted into conf.d of every docker run below. The images
# ship no php.ini, so memory_limit would default to 128M, which the
# test bootstrap (DI container compilation) already exceeds.
- name: "Prepare the extension ini"
run: printf 'extension=/work/turbo-ext/phpstan_turbo.so\nmemory_limit=-1\n' > "$RUNNER_TEMP/turbo-docker.ini"
- name: "Verify the extension is active in ${{ matrix.image }}"
env:
IMAGE: ${{ matrix.image }}
run: |
docker run --rm -v "$PWD:/work" -v "$RUNNER_TEMP/turbo-docker.ini:/usr/local/etc/php/conf.d/zz-turbo.ini" -w /work "$IMAGE" php -r '
require "src/Turbo/TurboExtensionEnabler.php";
PHPStan\Turbo\TurboExtensionEnabler::enableIfLoaded();
require "vendor/autoload.php";
if (!(new ReflectionClass("PHPStan\\Analyser\\ScopeOps"))->getParentClass() || !(new ReflectionClass("PHPStan\\Analyser\\ScopeOps"))->getParentClass()->isInternal()) {
fwrite(STDERR, "turbo extension is not shadowing ScopeOps" . PHP_EOL);
exit(1);
}
'
- name: "Run ${{ matrix.check }} in ${{ matrix.image }}"
# --shm-size: the arena allocates cross-worker shared memory, and
# docker's default 64M /dev/shm makes parallel analysis SIGBUS.
env:
IMAGE: ${{ matrix.image }}
SCRIPT: ${{ matrix.script }}
run: docker run --rm --shm-size=1g -v "$PWD:/work" -v "$RUNNER_TEMP/turbo-docker.ini:/usr/local/etc/php/conf.d/zz-turbo.ini" -w /work "$IMAGE" bash -c "$SCRIPT"
turbo-macos-universal:
name: "Turbo macOS Universal Binary"
needs: "turbo-compile"
runs-on: "macos-latest"
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
php-version: ["8.3", "8.4", "8.5"]
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0
with:
egress-policy: audit
- name: "Download x86_64 slice"
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: "turbo-slice-macos-x86_64-php${{ matrix.php-version }}"
path: "slice-x86_64"
- name: "Download arm64 slice"
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: "turbo-slice-macos-arm64-php${{ matrix.php-version }}"
path: "slice-arm64"
- name: "Merge the slices into a universal binary"
run: |
lipo -create slice-x86_64/phpstan_turbo.so slice-arm64/phpstan_turbo.so -output phpstan_turbo.so
lipo -info phpstan_turbo.so
# On arm64 AMFI refuses to map unsigned code, so the binary must carry
# at least an ad-hoc signature. lipo preserves the linker's per-slice
# ad-hoc signatures, but re-sign deliberately instead of relying on
# that. Quarantine (and thus Gatekeeper/notarization) only applies to
# browser downloads — composer/git/curl installs never see it — so an
# ad-hoc signature is enough and needs no secrets.
- name: "Ad-hoc sign the universal binary"
run: |
codesign --force --sign - phpstan_turbo.so
codesign --verify --verbose=2 phpstan_turbo.so
- name: "Install PHP"
uses: "shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240" # v2.37.2
with:
coverage: "none"
php-version: "${{ matrix.php-version }}"
- name: "Verify the universal binary loads"
run: php -d extension="$PWD/phpstan_turbo.so" -m | grep phpstan_turbo
- name: "Upload universal binary artifact"
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: "phpstan_turbo-macos-php${{ matrix.php-version }}"
path: "phpstan_turbo.so"
if-no-files-found: "error"
turbo-compile-windows:
name: "Compile Turbo Extension (Windows)"
# windows-latest and windows-2025 serve the VS2026 image, whose 14.5x
# toolset links DLLs the official php.net binaries (built with vs17,
# toolset 14.4x) refuse to load — PHP's loader rejects modules linked
# with a newer toolset generation than the core. The windows-2022 image
# is the one that ships VS2022.
runs-on: "windows-2022"
timeout-minutes: 40
env:
# php/php-sdk-binary-tools — the toolchain every PHP Windows build
# uses (ships bison and the unix tools phpize/configure expect).
PHP_SDK_COMMIT: "c73faaf1cce914e2fc04da5587132f8f425996af" # php-sdk-2.7.1
strategy:
fail-fast: false
matrix:
php-version: ["8.3", "8.4", "8.5"]
ts: ["nts", "zts"]
# The official 8.3 Windows binaries are built with VS16 (linker
# 14.2x) and PHP's module loader is one-directional (module toolset
# generation <= core's), so the 8.3 DLL must be linked with the v142
# toolset — which the windows-2022 image ships alongside the default
# v143. The devel pack name carries the same vs infix.
include:
- php-version: "8.3"
vs: "vs16"
toolset: "14.29"
- php-version: "8.4"
vs: "vs17"
- php-version: "8.5"
vs: "vs17"
steps:
- name: "Checkout"
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
persist-credentials: false
# full history: the extension version is baked from git log over
# the watched paths
fetch-depth: 0
- name: "Install PHP"
uses: "shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240" # v2.37.2
env:
phpts: "${{ matrix.ts == 'zts' && 'ts' || 'nts' }}"
with:
coverage: "none"
php-version: "${{ matrix.php-version }}"
- name: "Compute the extension version and download the build tools"
shell: bash
env:
MATRIX_TS: ${{ matrix.ts }}
MATRIX_VS: ${{ matrix.vs }}
run: |
SHA=$(git log -1 --format=%H -- turbo-ext/src | cut -c1-7)
echo "extension version: $SHA"
echo "PHPSTANTURBO_VERSION=$SHA" >> "$GITHUB_ENV"
FULL=$(php -r 'echo PHP_VERSION;')
# thread-safe devel packs carry no infix, NTS ones carry -nts
INFIX=$([ "$MATRIX_TS" = "zts" ] && echo "" || echo "-nts")
PACK="php-devel-pack-$FULL$INFIX-Win32-$MATRIX_VS-x64.zip"
echo "devel pack: $PACK"
curl -fsSLo devel-pack.zip "https://windows.php.net/downloads/releases/$PACK" \
|| curl -fsSLo devel-pack.zip "https://windows.php.net/downloads/releases/archives/$PACK"
unzip -q devel-pack.zip -d /c/php-devel
git clone -q https://github.com/php/php-sdk-binary-tools.git /c/php-sdk
git -C /c/php-sdk checkout -q "$PHP_SDK_COMMIT"
- name: "Set up MSVC environment"
uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
with:
arch: x64
# empty on the vs17 legs = the image's default (latest) toolset
toolset: ${{ matrix.toolset }}
- name: "Build the extension"
shell: cmd
working-directory: turbo-ext
run: |
for /d %%d in (C:\php-devel\php-*-devel-*) do set DEVEL=%%d
set PATH=%DEVEL%;C:\php-sdk\bin;C:\php-sdk\msys2\usr\bin;%PATH%
call phpize.bat
if errorlevel 1 exit /b 1
call configure.bat --enable-phpstan-turbo
if errorlevel 1 exit /b 1
nmake
- name: "Verify the built extension reports the expected version"
shell: bash
env:
MATRIX_TS: ${{ matrix.ts }}
run: |
DLL=$(find turbo-ext -name "php_phpstan_turbo.dll" | head -1)
[ -n "$DLL" ]
TURBO_DLL=$(cygpath -w "$PWD/$DLL")
echo "TURBO_DLL=$TURBO_DLL" >> "$GITHUB_ENV"
echo "DLL_PATH=$DLL" >> "$GITHUB_ENV"
REPORTED="$(php -d extension="$TURBO_DLL" -r 'echo phpversion("phpstan_turbo");')"
EXPECTED="$(sed -n "s/.*EXPECTED_EXTENSION_VERSION = '\([^']*\)'.*/\1/p" src/Turbo/TurboExtensionEnabler.php)"
echo "built extension reports: $REPORTED, enabler expects: $EXPECTED"
[ "$REPORTED" = "$EXPECTED" ]
# the loader rejects a ts-mismatched DLL, so php loading it above
# proves the DLL matches the interpreter; assert the interpreter
# itself so both sides cannot silently be NTS on the zts leg
WANT_ZTS=$([ "$MATRIX_TS" = "zts" ] && echo 1 || echo 0)
[ "$(php -r 'echo (int) ((bool) PHP_ZTS);')" = "$WANT_ZTS" ]
- uses: "ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda" # v4.0.0
with:
ignore-cache: true
- name: "Smoke test (differential: native vs PHP implementations)"
shell: bash
run: php -d extension="$TURBO_DLL" turbo-ext/tests/smoke.php
- name: "Arena smoke test (cross-process shared-memory records)"
shell: bash
run: php -d extension="$TURBO_DLL" turbo-ext/tests/arena-smoke.php
- name: "Signature parity (reflect native classes against the PHP twins)"
shell: bash
run: php -d extension="$TURBO_DLL" turbo-ext/tests/signature-parity.php
- name: "Parser corpus (differential: native vs PHP ASTs must be byte-identical)"
shell: bash
run: php -d extension="$TURBO_DLL" -d memory_limit=4G turbo-ext/tests/parser-corpus.php
- name: "Upload extension artifact"
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: "phpstan_turbo-windows-x86_64-php${{ matrix.php-version }}${{ matrix.ts == 'zts' && '-zts' || '' }}"
path: "${{ env.DLL_PATH }}"
if-no-files-found: "error"
turbo-artifact:
name: "Aggregate Turbo Extension Artifact"
needs:
- turbo-compile
- turbo-compile-musl-arm64
- turbo-compile-windows
- turbo-macos-universal
runs-on: "ubuntu-latest"
timeout-minutes: 5
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0
with:
egress-policy: audit
- name: "Download extension artifacts"
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
pattern: "phpstan_turbo-*"
path: "turbo-artifacts"
- name: "Arrange the distribution layout"
# phpstan_turbo-<target>-php<minor>[-zts] →
# <target>/phpstan_turbo-<minor>[-zts].<so|dll>, derived from the
# artifact names so new targets need no change here.
# The integration/extension/other test workflows in phpstan/phpstan
# download this artifact next to the phar under test.
run: |
for dir in turbo-artifacts/phpstan_turbo-*; do
name="${dir#turbo-artifacts/phpstan_turbo-}"
target="${name%-php*}"
minor="${name##*-php}"
for file in "$dir"/*; do
install -D -m 644 "$file" "turbo-ext-dist/$target/phpstan_turbo-$minor.${file##*.}"
done
done
find turbo-ext-dist -type f | sort
- name: "Upload aggregated artifact"
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: "turbo-ext-files"
path: "turbo-ext-dist"
if-no-files-found: "error"
turbo-run:
name: "Run with Turbo Extension"
needs:
- turbo-compile
- turbo-compile-windows
- turbo-macos-universal
runs-on: ${{ matrix.operating-system }}
timeout-minutes: 60