Repository navigation
3042 lines (2689 loc) · 133 KB
/
Copy pathphar.yml
File metadata and controls
3042 lines (2689 loc) · 133 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.3.x"
tags:
- '2.3.*'
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:
# Turbo binaries phpstan/phpstan used to carry but no compile leg builds any
# more (paths under turbo-ext/, shell globs). The commit job deletes them
# from the dist; without this, the torn-set guard there would refuse every
# version bump, since a retired binary has no freshly built replacement.
# None at the moment: the Linux ZTS binaries retired for 8.3-8.5 are built
# again (see turbo-compile).
TURBO_RETIRED_BINARIES: ""
# 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.9.0"
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@46b06cea07f9e64621fdf066ba77ac6915163d43 # v2.22.3
with:
egress-policy: audit
- name: "Checkout"
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
fetch-depth: 0
- name: "Install PHP"
uses: "shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962" # 2.40.0
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
# it stays in require, the PHAR is built without dev dependencies and the fixer needs it
- name: "Downgrade PHPUnit"
run: |
composer require --no-update sebastian/diff:^4.0
composer require --dev --no-update phpunit/phpunit:^9.6 doctrine/instantiator:^1.0
composer update phpunit/phpunit sebastian/diff doctrine/instantiator --with-all-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"
# Box leaves the members with mtime 0 here, which OPcache refuses to
# cache at all; the commit date also keeps consecutive builds apart for
# opcache.validate_timestamps (see OpcacheSettings::resolveIniEntries()).
# resign.php fails if any member is left at mtime 0.
- name: "Stamp PHAR member timestamps"
run: php compiler/build/resign.php tmp/phpstan.phar "$(git log -1 --format=%cI)"
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: phar-file
path: tmp/phpstan.phar
- name: "Run PHAR"
working-directory: "compiler"
run: "../tmp/phpstan.phar list"
# The autoloader dump generates the version TurboExtensionEnabler
# activates from git; without it in the phar, no turbo binary would
# ever activate.
- name: "Check the PHAR carries the expected turbo extension version"
run: |
BAKED="$(php -r 'echo require "phar://" . getcwd() . "/tmp/phpstan.phar/vendor/turbo-extension-version.php";')"
EXPECTED="$(php build/turbo-extension-version.php)"
echo "PHAR expects: $BAKED, last commit touching turbo-ext/src: $EXPECTED"
[ "$BAKED" = "$EXPECTED" ]
- 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.3.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.3.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@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: phar-file-checksum
path: tmp/phpstan.phar
- name: "Delete checksum PHAR"
run: "rm tmp/phpstan.phar"
- uses: dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4.0.3
id: changes
with:
filters: |
compiler:
- 'compiler/**'
- '.github/workflows/phar.yml'
- '.github/scripts/**'
turbo-missing-note:
name: "Note about a phar without PHPStan Turbo"
needs: compiler-tests
runs-on: "ubuntu-latest"
timeout-minutes: 10
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@46b06cea07f9e64621fdf066ba77ac6915163d43 # v2.22.3
with:
egress-policy: audit
# the compiler-tests job runs the phar only for `list`, which prints
# no note
- name: "Install PHP"
uses: "shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962" # 2.40.0
with:
coverage: "none"
php-version: "8.4"
- name: "Download PHAR"
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: phar-file
path: bare
# a copy of phpstan.phar alone prints the note, the same phar with a
# turbo-ext/ directory next to it (as in the Composer package) does not
- name: "Check the note"
run: |
printf '<?php\n\necho 1;\n' > test.php
php bare/phpstan.phar analyse -l 0 --no-progress test.php 2> bare.err
cat bare.err
grep -q 'PHPStan runs without PHPStan Turbo' bare.err
mkdir -p with-turbo-ext/turbo-ext
cp bare/phpstan.phar with-turbo-ext/
php with-turbo-ext/phpstan.phar analyse -l 0 --no-progress test.php 2> with-turbo-ext.err
cat with-turbo-ext.err
! grep -q 'PHPStan Turbo' with-turbo-ext.err
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@46b06cea07f9e64621fdf066ba77ac6915163d43 # v2.22.3
with:
egress-policy: audit
- name: "Checkout"
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
fetch-depth: 0 # git log over turbo-ext/src needs full history
- name: "Install PHP"
uses: "shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962" # 2.40.0
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 and turbo-ext/tests/parser-upstream-corpus.php until byte-identical, run the full suite, then bump SUPPORTED_PHP_PARSER_VERSION here."
exit 1
fi
- name: "Check the 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: "Check turbo-ext/VERSION.txt is not committed"
run: |
# 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@46b06cea07f9e64621fdf066ba77ac6915163d43 # v2.22.3
with:
egress-policy: audit
- name: "Checkout"
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
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@eb7c497e18156a6bbabfef1d3a82760b9eda3962" # 2.40.0
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="$(php build/turbo-extension-version.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)"
# the Type-family child processes (tests/type-family.php) 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/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: "Forked-worker exit (exitImmediately() ends a child whose teardown would wedge)"
run: php -d extension="$RUNNER_TEMP/turbo-ext/modules/phpstan_turbo.so" turbo-ext/tests/exit-immediately.php
- name: "Trusted types (the optimizer pass drops type checks under the prefix only)"
# the opcache.file_cache child process locates 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" -d opcache.enable_cli=1 turbo-ext/tests/trusted-types.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 .
php-windows-prereleases:
name: "Find PHP Prereleases for Windows"
# For an unreleased minor, setup-php installs a nightly build on Windows,
# which has no devel pack to compile against; the Windows legs replace it
# with the official prerelease. This resolves the current one for every
# minor in this workflow's matrices that has no stable Windows build yet
# (.github/scripts/find-php-windows-prereleases.sh), once per run, so all
# legs install the same build even when a new release candidate comes out
# in the meantime.
runs-on: "ubuntu-latest"
timeout-minutes: 5
permissions:
contents: read # actions/checkout of this repository
outputs:
prereleases: ${{ steps.find.outputs.prereleases }}
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@46b06cea07f9e64621fdf066ba77ac6915163d43 # v2.22.3
with:
egress-policy: audit
- name: "Checkout"
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
sparse-checkout: |
.github/scripts
.github/workflows
- name: "Find the prerelease of every PHP minor without a stable Windows build"
id: find
run: |
MINORS="$(yq -r '[.jobs[].strategy.matrix["php-version"] | select(. != null) | .[]] | unique | .[] | select(test("^[0-9]+\\.[0-9]+$"))' .github/workflows/phar.yml | tr '\n' ' ')"
echo "PHP minors in the matrices: $MINORS"
MINORS="$MINORS" bash .github/scripts/find-php-windows-prereleases.sh
turbo-origins:
name: "Find Reusable Turbo Extension Builds"
# Most pushes and pull requests leave the extension's build inputs
# untouched, and building a platform's profile-guided core takes up to
# 12 minutes. For each core, this finds the newest earlier run that
# compiled it from identical build inputs
# (.github/scripts/find-turbo-origins.sh has the exact conditions), and
# its turbo-compile-core leg skips the build altogether: it runs on
# ubuntu-latest, outside any build container, and only carries that core
# over into this run. The same goes for each turbo-shared-core-gate
# leg's fingerprint. The per-version extensions always compile (a
# minute each) against it, then go through the version check and the
# differential tests of the turbo-differential jobs like any build —
# they compare the native side with the PHP side of this commit, which
# may have changed. An extension compiled against 8.6 prerelease headers
# that moved on since fails its own leg, not the reused core.
# Only runs of this workflow triggered by a push to 2.3.x qualify — the
# same runs whose compiled binaries the commit job stages into
# phpstan/phpstan — so reusing their artifacts trusts no code the
# distributed binaries do not already depend on. actions/cache was ruled
# out for that reason: any workflow running on 2.3.x can write entries
# into the branch's cache, one this workflow would then restore.
runs-on: "ubuntu-latest"
timeout-minutes: 5
permissions:
contents: read # actions/checkout of this repository
actions: read # lists the earlier runs of this workflow and their artifacts
outputs:
origins: ${{ steps.find.outputs.origins }}
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@46b06cea07f9e64621fdf066ba77ac6915163d43 # v2.22.3
with:
egress-policy: audit
- name: "Checkout"
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
fetch-depth: 0 # the earlier runs' commits are diffed against HEAD
- name: "Find the newest build of each binary from identical build inputs"
id: find
env:
GH_TOKEN: ${{ github.token }}
BRANCH: "2.3.x"
run: bash .github/scripts/find-turbo-origins.sh
turbo-compile-core:
name: "Compile Turbo Extension Core"
# The distributed binaries are a shared core per platform plus a thin
# extension per PHP version (turbo-ext/README.md, "Shared core"). The
# core is everything but the four version-specific sources: it compiles
# to the same code against every supported PHP's headers
# (turbo-shared-core-gate proves it), so it is built once per platform,
# here, profile-guided against one PHP version (matrix php-version), and
# every turbo-compile leg of the platform links its extension against it.
# A leg whose core turbo-origins found in an earlier run builds nothing:
# it runs on ubuntu-latest without a container and carries that core
# over (runs-on and container cannot read env, hence the lookup of
# ORIGIN_RUN_ID repeated in both).
runs-on: ${{ fromJSON(needs.turbo-origins.outputs.origins || '{}')[format('phpstan_turbo_core-{0}', matrix.target.name)] && 'ubuntu-latest' || matrix.target.runs-on }}
# Container legs pin the binaries' userland floor independently of the
# runner image: the gnu legs run in the prebuilt ubuntu:22.04-based
# image (.github/turbo-build/Dockerfile, published to GHCR by
# turbo-build-image.yml) — the glibc symbol floor stays at 2.34 (RHEL 9,
# Ubuntu 22.04+, Debian 12+) and the jobs run no apt at all — and
# alpine:3.24 builds the musl variant. The linux-musl-arm64 core is in
# turbo-compile-core-musl-arm64 (see turbo-compile-musl-arm64 for why).
container: ${{ !(fromJSON(needs.turbo-origins.outputs.origins || '{}')[format('phpstan_turbo_core-{0}', matrix.target.name)]) && (matrix.target.family == 'gnu' && format('ghcr.io/phpstan/turbo-build:gnu-php{0}', matrix.target.php-version) || matrix.target.container) || '' }}
needs: turbo-origins
timeout-minutes: 30
permissions:
contents: read # actions/checkout of this repository
actions: read # downloads a reused core from an earlier run, see turbo-origins
env:
PHP_MINOR: ${{ matrix.target.php-version }}
PHP_ZTS: "0"
TURBO_ARTIFACT: "phpstan_turbo_core-${{ matrix.target.name }}"
PGO_PROFILE_ARTIFACT: "turbo-pgo-profile-${{ matrix.target.name }}"
ORIGIN_RUN_ID: ${{ fromJSON(needs.turbo-origins.outputs.origins || '{}')[format('phpstan_turbo_core-{0}', matrix.target.name)] }}
strategy:
fail-fast: false
matrix:
# php-version: the PHP the core is compiled and profiled against —
# any supported one gives the same code (the gate); the newest
# stable one runs the training workload the way most users will
target:
- name: "linux-gnu-x86_64"
runs-on: "ubuntu-latest"
family: "gnu"
php-version: "8.5"
- name: "linux-gnu-arm64"
runs-on: "ubuntu-24.04-arm"
family: "gnu"
php-version: "8.5"
- name: "linux-musl-x86_64"
runs-on: "ubuntu-latest"
container: "alpine:3.24"
family: "musl"
php-version: "8.5"
# arm64 (Apple Silicon) only: setup-php dropped Intel macOS, and
# TurboExtensionSelector resolves Darwin to macos-arm64 only when
# php_uname('m') says arm64.
- name: "macos-arm64"
runs-on: "macos-latest"
family: "macos"
php-version: "8.5"
steps:
- name: Harden the runner (Audit all outbound calls)
if: env.ORIGIN_RUN_ID != '' || matrix.target.family == 'macos'
uses: step-security/harden-runner@46b06cea07f9e64621fdf066ba77ac6915163d43 # v2.22.3
with:
egress-policy: audit
# See turbo-origins. The build steps below are all skipped on this leg.
- name: "Download the core compiled from identical build inputs"
if: env.ORIGIN_RUN_ID != ''
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: ${{ env.TURBO_ARTIFACT }}
path: "turbo-ext"
run-id: ${{ env.ORIGIN_RUN_ID }}
github-token: ${{ github.token }}
# the profile that core was compiled with, uploaded before it (see
# "Upload the core's profile")
- name: "Download the profile of the core compiled from identical build inputs"
if: env.ORIGIN_RUN_ID != ''
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: ${{ env.PGO_PROFILE_ARTIFACT }}
path: "turbo-ext"
run-id: ${{ env.ORIGIN_RUN_ID }}
github-token: ${{ github.token }}
- name: "Record the run that compiled the core"
if: env.ORIGIN_RUN_ID != ''
run: echo "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$ORIGIN_RUN_ID" | tee turbo-reused.txt
# actions/checkout needs git inside the Alpine container; PHP itself is
# installed after checkout, by a script from the repository. The GNU
# container legs have the toolchain baked in.
- name: "Install git (Alpine container)"
if: env.ORIGIN_RUN_ID == '' && matrix.target.family == 'musl'
run: apk add --no-cache git
- name: "Checkout"
if: env.ORIGIN_RUN_ID == ''
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
# The Makefile bakes the 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"
if: env.ORIGIN_RUN_ID == ''
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: "Install PHP and build tools (Alpine container)"
if: env.ORIGIN_RUN_ID == '' && matrix.target.family == 'musl'
run: sh .github/scripts/install-alpine-php.sh
- name: "Install PHP (macOS)"
if: env.ORIGIN_RUN_ID == '' && matrix.target.family == 'macos'
uses: "shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962" # 2.40.0
with:
coverage: "none"
php-version: "${{ matrix.target.php-version }}"
# The training run of `make pgo` (bin/pgo-train.sh) runs bin/phpstan on
# the checkout, so the dependencies must be in place before the build.
- uses: "ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda" # v4.0.0
if: env.ORIGIN_RUN_ID == '' && matrix.target.family == 'macos'
with:
ignore-cache: true
- name: "Install Composer dependencies (verified composer)"
if: env.ORIGIN_RUN_ID == '' && matrix.target.family != 'macos'
# signature-verified composer (.github/scripts/download-composer.sh;
# the distro composers are unusable here: 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), run under the matrix PHP so
# platform requirements are validated against the interpreter the
# build trains on
run: |
sh .github/scripts/download-composer.sh
php composer.phar install --no-interaction --no-progress
rm composer.phar
- name: "Compile the core with strict warnings (profile-guided)"
if: env.ORIGIN_RUN_ID == ''
working-directory: "turbo-ext"
# `make SPLIT=1 pgo`: an instrumented core and extension, a training
# run of PHPStan over its own sources with them loaded, then the
# final build using the recorded profile — the same three stages
# locally, so a profile-guided core can be reproduced outside CI.
# The strict set itself lives in turbo-ext/Makefile
# (STRICT_WARN_FLAGS), which documents why each exemption is there.
# `make pgo-pack` keeps the core's share of the profile for the pie
# legs of turbo-compile, which build with it instead of training again.
run: |
make SPLIT=1 pgo WARN_FLAGS="$(make -s print-warn-flags)" -j"$(getconf _NPROCESSORS_ONLN 2>/dev/null || nproc)"
make SPLIT=1 pgo-pack
# Before signing (stripping invalidates a signature) and before the
# upload. The symbol tables are a quarter of the binary; see `strip`
# in the Makefile.
- name: "Strip symbol tables"
if: env.ORIGIN_RUN_ID == ''
working-directory: "turbo-ext"
run: |
ls -l phpstan_turbo_core.so phpstan_turbo.so
make SPLIT=1 strip
ls -l phpstan_turbo_core.so phpstan_turbo.so
# On arm64 AMFI refuses to map unsigned code, so the binary must carry
# at least an ad-hoc signature. 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 core (macOS)"
if: env.ORIGIN_RUN_ID == '' && matrix.target.family == 'macos'
working-directory: "turbo-ext"
run: |
codesign --force --sign - phpstan_turbo_core.so phpstan_turbo.so
codesign --verify --verbose=2 phpstan_turbo_core.so
# The extension the training run loaded proves the core loads and
# carries the version the extension expects; a reused core passed
# this in the run compiling it.
- name: "Verify the core reports the expected version"
if: env.ORIGIN_RUN_ID == ''
run: |
REPORTED="$(php -d extension="$PWD/turbo-ext/phpstan_turbo.so" -r 'echo phpversion("phpstan_turbo");')"
EXPECTED="$(php build/turbo-extension-version.php)"
echo "core + extension report: $REPORTED, enabler expects: $EXPECTED"
[ "$REPORTED" = "$EXPECTED" ]
# Before the core, so that a run carrying the core (all that
# find-turbo-origins.sh checks) carries its profile too. A reused one
# is uploaded again, like the core.
- name: "Upload the core's profile"
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: ${{ env.PGO_PROFILE_ARTIFACT }}
path: "turbo-ext/pgo-profile.tar"
if-no-files-found: "error"
# A reused core is uploaded again under the same name, so the
# turbo-compile legs find it in this run.
- name: "Upload core artifact"
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: ${{ env.TURBO_ARTIFACT }}
path: "turbo-ext/phpstan_turbo_core.so"
if-no-files-found: "error"
# Keeps later runs from reusing the copy above: they take the core
# from the run that compiled it (see find-turbo-origins.sh).
- name: "Mark the core artifact as reused"
if: env.ORIGIN_RUN_ID != ''
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: "turbo-reused-${{ env.TURBO_ARTIFACT }}"
path: "turbo-reused.txt"
if-no-files-found: "error"
turbo-compile-core-musl-arm64:
name: "Compile Turbo Extension Core (musl arm64)"
# The arm64 counterpart of the linux-musl-x86_64 leg of
# turbo-compile-core, driving an Alpine container through docker exec
# (see turbo-compile-musl-arm64 for why it cannot be a container leg).
runs-on: ${{ fromJSON(needs.turbo-origins.outputs.origins || '{}')['phpstan_turbo_core-linux-musl-arm64'] && 'ubuntu-latest' || 'ubuntu-24.04-arm' }}
needs: turbo-origins
timeout-minutes: 30
permissions:
contents: read # actions/checkout of this repository
actions: read # downloads a reused core from an earlier run, see turbo-origins
env:
# the PHP the core is compiled and profiled against, as in turbo-compile-core
PHP_MINOR: "8.5"
PHP_ZTS: "0"
TURBO_ARTIFACT: "phpstan_turbo_core-linux-musl-arm64"
PGO_PROFILE_ARTIFACT: "turbo-pgo-profile-linux-musl-arm64"
ORIGIN_RUN_ID: ${{ fromJSON(needs.turbo-origins.outputs.origins || '{}')['phpstan_turbo_core-linux-musl-arm64'] }}
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@46b06cea07f9e64621fdf066ba77ac6915163d43 # v2.22.3
with:
egress-policy: audit
# See the same three steps in turbo-compile-core.
- name: "Download the core compiled from identical build inputs"
if: env.ORIGIN_RUN_ID != ''
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: ${{ env.TURBO_ARTIFACT }}
path: "turbo-ext"
run-id: ${{ env.ORIGIN_RUN_ID }}
github-token: ${{ github.token }}
- name: "Download the profile of the core compiled from identical build inputs"
if: env.ORIGIN_RUN_ID != ''
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: ${{ env.PGO_PROFILE_ARTIFACT }}
path: "turbo-ext"
run-id: ${{ env.ORIGIN_RUN_ID }}
github-token: ${{ github.token }}
- name: "Record the run that compiled the core"
if: env.ORIGIN_RUN_ID != ''
run: echo "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$ORIGIN_RUN_ID" | tee turbo-reused.txt
- name: "Checkout"
if: env.ORIGIN_RUN_ID == ''
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
fetch-depth: 0 # the version is baked from git log over turbo-ext/src
- name: "Start the Alpine build container"
if: env.ORIGIN_RUN_ID == ''
run: |
docker run -d --name alpine-build \
-v "$PWD:/work" -w /work \
-e PHP_MINOR -e PHP_ZTS \
alpine:3.24 sleep 7200
- name: "Install PHP and build tools"
if: env.ORIGIN_RUN_ID == ''
run: docker exec alpine-build sh .github/scripts/install-alpine-php.sh
# 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".
- name: "Trust the checkout despite the container/host uid mismatch"
if: env.ORIGIN_RUN_ID == ''
run: docker exec alpine-build git config --global --add safe.directory /work
# The training run of `make pgo` runs bin/phpstan on the checkout.
- name: "Install Composer dependencies (verified composer)"
if: env.ORIGIN_RUN_ID == ''
run: |
docker exec -i alpine-build sh -e <<'EOF'
sh .github/scripts/download-composer.sh
COMPOSER_HOME="$(mktemp -d)" php composer.phar install --no-interaction --no-progress
rm composer.phar
EOF
- name: "Compile the core with strict warnings (profile-guided)"
if: env.ORIGIN_RUN_ID == ''
run: |
docker exec -i -w /work/turbo-ext alpine-build sh -e <<'EOF'
make SPLIT=1 pgo WARN_FLAGS="$(make -s print-warn-flags)" -j"$(getconf _NPROCESSORS_ONLN 2>/dev/null || nproc)"
make SPLIT=1 pgo-pack
make SPLIT=1 strip
ls -l phpstan_turbo_core.so phpstan_turbo.so
EOF
- name: "Verify the core reports the expected version"
if: env.ORIGIN_RUN_ID == ''
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="$(php build/turbo-extension-version.php)"
echo "core + extension report: $REPORTED, enabler expects: $EXPECTED"
[ "$REPORTED" = "$EXPECTED" ]
EOF
- name: "Upload the core's profile"
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: ${{ env.PGO_PROFILE_ARTIFACT }}
path: "turbo-ext/pgo-profile.tar"
if-no-files-found: "error"
- name: "Upload core artifact"
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: ${{ env.TURBO_ARTIFACT }}
path: "turbo-ext/phpstan_turbo_core.so"
if-no-files-found: "error"
- name: "Mark the core artifact as reused"
if: env.ORIGIN_RUN_ID != ''
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: "turbo-reused-${{ env.TURBO_ARTIFACT }}"
path: "turbo-reused.txt"
if-no-files-found: "error"
turbo-compile:
name: "Compile Turbo Extension"
# The extension of one PHP version: the four version-specific sources
# (the Makefile's SHIM_SOURCES) compiled against that version's headers
# and linked against the platform's core from turbo-compile-core. A
# minute's work, so it always runs; the core is what earlier runs'
# builds are reused for. The artifact carries the core next to the
# extension — the tests of the turbo-differential jobs load it from
# there, and the commit job checks that every leg of a platform carries
# the same core.
# The `pie` variant legs build the same version self-contained instead,
# profile-guided with the profile the platform's core was built with
# (`make pgo-from-profile`) — PIE installs a pre-packaged binary by
# copying the one extension file, so the PIE release assets cannot be
# the thin extension (see .github/scripts/turbo-pie-assets.sh). Nothing
# else ships them, so they only run for release tags (turbo-pie-release
# publishes them) and on pull requests labelled turbo-pie.
runs-on: ${{ matrix.target.runs-on }}
# Container legs pin the binaries' userland floor independently of the
# runner image, like turbo-compile-core. Every Linux target has a ZTS
# leg (ts: zts, artifact suffix -zts) next to the NTS one for every
# minor: distros, ppa:ondrej/php, sury, Remi and setup-php ship an NTS
# CLI, while the official Docker images build every 8.6+ variant
# thread-safe, cli and alpine included (docker-library/php#1686), and
# their php:*-zts tags (the base of FrankenPHP) do so for older minors.
# The thread-safe extension is only the per-version shim — it links
# against the platform's one core, which never touches TSRM
# (turbo-shared-core-gate compares the two builds too) — so a ZTS leg
# compiles only those few sources. ondrej/php packages no thread-safe
# PHP, so the gnu-php<minor>-zts images build the minor's newest
# official tarball (build-php.sh; so does gnu-php8.6, a prerelease), and
# the musl ZTS legs build it in alpine:3.24, since Alpine packages no
# thread-safe PHP either. Alpine's NTS php86 packages are
# currently only in edge/testing.
container: ${{ matrix.target.family == 'gnu' && format('ghcr.io/phpstan/turbo-build:gnu-php{0}{1}', matrix.php-version, matrix.ts == 'zts' && '-zts' || '') || matrix.target.family == 'musl' && matrix.php-version == '8.6' && matrix.ts != 'zts' && 'alpine:edge' || matrix.target.container || '' }}
needs: turbo-compile-core
# one platform's failed core must not skip every platform's legs: a leg
# whose core is missing fails at its download instead
if: ${{ !cancelled() }}
timeout-minutes: ${{ matrix.variant == 'pie' && 45 || 20 }}
env:
PHP_MINOR: ${{ matrix.php-version }}
PHP_ZTS: ${{ matrix.ts == 'zts' && '1' || '0' }}
TURBO_ARTIFACT: "${{ matrix.variant == 'pie' && 'phpstan_turbo_pie' || 'phpstan_turbo' }}-${{ matrix.target.name }}-php${{ matrix.php-version }}${{ matrix.ts == 'zts' && '-zts' || '' }}"
strategy:
fail-fast: false
matrix:
php-version: ["8.2", "8.3", "8.4", "8.5", "8.6"]
# the musl arm64 legs are in turbo-compile-musl-arm64
target:
- name: "linux-gnu-x86_64"
runs-on: "ubuntu-latest"
family: "gnu"
- name: "linux-gnu-arm64"
runs-on: "ubuntu-24.04-arm"
family: "gnu"
- name: "linux-musl-x86_64"
runs-on: "ubuntu-latest"
container: "alpine:3.24"
family: "musl"
# arm64 (Apple Silicon) only, like turbo-compile-core
- name: "macos-arm64"
runs-on: "macos-latest"
family: "macos"
ts: ["nts", "zts"]
# split: the thin extension the dist ships; pie: self-contained, for
# the PIE release assets (see above)
variant: ${{ fromJSON((startsWith(github.ref, 'refs/tags/') || contains(github.event.pull_request.labels.*.name, 'turbo-pie')) && '["split", "pie"]' || '["split"]') }}
# Homebrew and setup-php ship an NTS PHP on macOS, and no
# thread-safe distribution is common enough there to build for
exclude:
- target:
name: "macos-arm64"
runs-on: "macos-latest"
family: "macos"
ts: "zts"
steps:
- name: Harden the runner (Audit all outbound calls)
if: matrix.target.family == 'macos'
uses: step-security/harden-runner@46b06cea07f9e64621fdf066ba77ac6915163d43 # v2.22.3
with:
egress-policy: audit
# actions/checkout needs git inside the Alpine container; PHP itself is
# installed after checkout, by a script from the repository. The GNU
# container legs have the toolchain baked in.
- name: "Install git (Alpine container)"
if: matrix.target.family == 'musl'
run: apk add --no-cache git
- name: "Checkout"
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
# the version is baked from git log over turbo-ext/src, see
# turbo-compile-core
fetch-depth: 0
# see turbo-compile-core
- name: "Trust the checkout despite the container/host uid mismatch"
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
# The thread-safe legs and 8.2 build PHP from source, minutes on every
# leg; install-alpine-php.sh keeps that build in alpine-php-cache, under
# a key naming exactly what it built (see the script). Nothing to cache
# for a leg installing Alpine's packages (release= is empty).
- name: "Resolve the PHP build to cache (Alpine container)"
id: alpine-php
if: matrix.target.family == 'musl'
run: sh .github/scripts/install-alpine-php.sh --resolve >> "$GITHUB_OUTPUT"
- name: "Restore the PHP build (Alpine container)"
if: steps.alpine-php.outputs.release != ''
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: "alpine-php-cache"
key: "alpine-php-${{ steps.alpine-php.outputs.release }}-${{ hashFiles('.github/turbo-build/build-php.sh') }}"
# The build needs php/php-config on PATH for the matrix PHP version.
- name: "Install PHP and build tools (Alpine container)"
if: matrix.target.family == 'musl'
# the container's path of the workspace, which github.workspace is not
run: PHP_CACHE_DIR="$GITHUB_WORKSPACE/alpine-php-cache" sh .github/scripts/install-alpine-php.sh
- name: "Install PHP (macOS)"
if: matrix.target.family == 'macos'
uses: "shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962" # 2.40.0
with:
coverage: "none"
php-version: "${{ matrix.php-version }}"
- name: "Download the platform's core"
if: matrix.variant == 'split'
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: "phpstan_turbo_core-${{ matrix.target.name }}"
path: "turbo-ext"
# The strict set lives in turbo-ext/Makefile (STRICT_WARN_FLAGS).
- name: "Compile the extension with strict warnings"
if: matrix.variant == 'split'
working-directory: "turbo-ext"
run: |
make SPLIT=1 extension WARN_FLAGS="$(make -s print-warn-flags)" -j"$(getconf _NPROCESSORS_ONLN 2>/dev/null || nproc)"
# The profile the platform's core was compiled with (turbo-compile-core,
# `make pgo-pack`): the core is all but the four version-specific
# sources and compiles to the same code against every version's
# headers, so the self-contained build of this version uses its profile
# instead of training one of its own — which took most of the leg.
- name: "Download the profile of the platform's core"
if: matrix.variant == 'pie'
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: "turbo-pgo-profile-${{ matrix.target.name }}"
path: "turbo-ext"
# see the same steps in turbo-compile-core: the training run of
# `make pgo` runs bin/phpstan on the checkout (pgo-from-profile falls
# back to it when another compiler recorded the profile)
- uses: "ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda" # v4.0.0
if: matrix.variant == 'pie' && matrix.target.family == 'macos'
with:
ignore-cache: true
- name: "Install Composer dependencies (verified composer)"
if: matrix.variant == 'pie' && matrix.target.family != 'macos'
run: |