@@ -46,9 +46,9 @@ function get_current_version(): array {
4646 return [$ major , $ minor ];
4747}
4848
49- function select_jobs ($ trigger , $ labels , $ php_version , $ ref , $ comprehensive ) {
50- $ disable_all = in_array ('CI: Disable all ' , $ labels , true );
51- $ enable_all = in_array ('CI: Enable all ' , $ labels , true );
49+ function select_jobs ($ trigger , $ labels , $ php_version , $ ref , $ all_variations ) {
50+ $ no_jobs = in_array ('CI: No jobs ' , $ labels , true );
51+ $ all_jobs = in_array ('CI: All jobs ' , $ labels , true );
5252 $ test_alpine = in_array ('CI: Alpine ' , $ labels , true );
5353 $ test_benchmarking = in_array ('CI: Benchmarking ' , $ labels , true );
5454 $ test_community = in_array ('CI: Community ' , $ labels , true );
@@ -63,10 +63,10 @@ function select_jobs($trigger, $labels, $php_version, $ref, $comprehensive) {
6363 $ test_windows = in_array ('CI: Windows ' , $ labels , true );
6464
6565 $ jobs = [];
66- if (version_compare ($ php_version , '8.4 ' , '>= ' ) && ($ enable_all || !$ disable_all || $ test_alpine )) {
66+ if (version_compare ($ php_version , '8.4 ' , '>= ' ) && ($ all_jobs || !$ no_jobs || $ test_alpine )) {
6767 $ jobs ['ALPINE ' ] = true ;
6868 }
69- if ($ enable_all || $ test_community ) {
69+ if ($ all_jobs || $ test_community ) {
7070 $ jobs ['COMMUNITY ' ]['matrix ' ] = version_compare ($ php_version , '8.4 ' , '>= ' )
7171 ? ['type ' => ['asan ' , 'verify_type_inference ' ]]
7272 : ['type ' => ['asan ' ]];
@@ -75,14 +75,14 @@ function select_jobs($trigger, $labels, $php_version, $ref, $comprehensive) {
7575 if ($ trigger === 'schedule ' && $ ref === 'master ' ) {
7676 $ jobs ['COVERAGE ' ] = true ;
7777 }
78- if ($ enable_all || $ test_libmysqlclient ) {
78+ if ($ all_jobs || $ test_libmysqlclient ) {
7979 $ jobs ['LIBMYSQLCLIENT ' ] = true ;
8080 }
81- if (version_compare ($ php_version , '8.4 ' , '>= ' ) && ($ enable_all || $ test_linux_ppc64 )) {
81+ if (version_compare ($ php_version , '8.4 ' , '>= ' ) && ($ all_jobs || $ test_linux_ppc64 )) {
8282 $ jobs ['LINUX_PPC64 ' ] = true ;
8383 }
84- if ($ enable_all || !$ disable_all || $ test_linux_x64 ) {
85- $ jobs ['LINUX_X64 ' ]['matrix ' ] = $ comprehensive
84+ if ($ all_jobs || !$ no_jobs || $ test_linux_x64 ) {
85+ $ jobs ['LINUX_X64 ' ]['matrix ' ] = $ all_variations
8686 ? [
8787 'name ' => ['' ],
8888 'asan ' => [false ],
@@ -102,42 +102,42 @@ function select_jobs($trigger, $labels, $php_version, $ref, $comprehensive) {
102102 ]];
103103 $ jobs ['LINUX_X64 ' ]['config ' ]['variation_enable_zend_max_execution_timers ' ] = version_compare ($ php_version , '8.3 ' , '>= ' );
104104 }
105- if ($ enable_all || !$ disable_all || $ test_linux_x32 ) {
106- $ jobs ['LINUX_X32 ' ]['matrix ' ] = $ comprehensive
105+ if ($ all_jobs || !$ no_jobs || $ test_linux_x32 ) {
106+ $ jobs ['LINUX_X32 ' ]['matrix ' ] = $ all_variations
107107 ? ['debug ' => [true , false ], 'zts ' => [true , false ]]
108108 : ['debug ' => [true ], 'zts ' => [true ]];
109109 }
110- if ($ enable_all || !$ disable_all || $ test_macos ) {
110+ if ($ all_jobs || !$ no_jobs || $ test_macos ) {
111111 $ test_arm = version_compare ($ php_version , '8.4 ' , '>= ' );
112- $ jobs ['MACOS ' ]['matrix ' ] = $ comprehensive
112+ $ jobs ['MACOS ' ]['matrix ' ] = $ all_variations
113113 ? ['arch ' => $ test_arm ? ['X64 ' , 'ARM64 ' ] : ['X64 ' ], 'debug ' => [true , false ], 'zts ' => [true , false ]]
114114 : ['include ' => [['arch ' => $ test_arm ? 'ARM64 ' : 'X64 ' , 'debug ' => true , 'zts ' => false ]]];
115115 $ jobs ['MACOS ' ]['config ' ]['arm64_version ' ] = version_compare ($ php_version , '8.4 ' , '>= ' ) ? '15 ' : '14 ' ;
116116 }
117- if ($ enable_all || $ test_msan ) {
117+ if ($ all_jobs || $ test_msan ) {
118118 $ jobs ['MSAN ' ] = true ;
119119 }
120- if ($ enable_all || $ test_opcache_variation ) {
120+ if ($ all_jobs || $ test_opcache_variation ) {
121121 $ jobs ['OPCACHE_VARIATION ' ] = true ;
122122 }
123123 if ($ trigger === 'schedule ' && $ ref === 'master ' ) {
124124 $ jobs ['PECL ' ] = true ;
125125 }
126- if ($ enable_all || !$ disable_all || $ test_windows ) {
126+ if ($ all_jobs || !$ no_jobs || $ test_windows ) {
127127 $ windows_jobs = ['include ' => [['asan ' => true , 'opcache ' => true , 'x64 ' => true , 'zts ' => true ]]];
128- if ($ comprehensive ) {
128+ if ($ all_variations ) {
129129 $ windows_jobs ['include ' ][] = ['asan ' => false , 'opcache ' => false , 'x64 ' => false , 'zts ' => false ];
130130 }
131131 $ jobs ['WINDOWS ' ]['matrix ' ] = $ windows_jobs ;
132132 $ jobs ['WINDOWS ' ]['config ' ] = version_compare ($ php_version , '8.4 ' , '>= ' )
133133 ? ['vs_crt_version ' => 'vs17 ' ]
134134 : ['vs_crt_version ' => 'vs16 ' ];
135135 }
136- if ($ enable_all || !$ disable_all || $ test_benchmarking ) {
136+ if ($ all_jobs || !$ no_jobs || $ test_benchmarking ) {
137137 $ jobs ['BENCHMARKING ' ] = true ;
138138 }
139- if ($ enable_all || !$ disable_all || $ test_freebsd ) {
140- $ jobs ['FREEBSD ' ]['matrix ' ] = $ comprehensive && version_compare ($ php_version , '8.3 ' , '>= ' )
139+ if ($ all_jobs || !$ no_jobs || $ test_freebsd ) {
140+ $ jobs ['FREEBSD ' ]['matrix ' ] = $ all_variations && version_compare ($ php_version , '8.3 ' , '>= ' )
141141 ? ['zts ' => [true , false ]]
142142 : ['zts ' => [false ]];
143143 }
@@ -160,15 +160,15 @@ function select_jobs($trigger, $labels, $php_version, $ref, $comprehensive) {
160160
161161$ labels = json_decode ($ argv [4 ] ?? '[] ' , true );
162162$ labels = array_column ($ labels , 'name ' );
163- $ comprehensive = $ trigger === 'schedule ' || $ trigger === 'workflow_dispatch ' || in_array ('CI: Comprehensive ' , $ labels , true );
163+ $ all_variations = $ trigger === 'schedule ' || $ trigger === 'workflow_dispatch ' || in_array ('CI: All variations ' , $ labels , true );
164164
165165foreach ($ branches as &$ branch ) {
166166 $ php_version = $ branch ['version ' ][0 ] . '. ' . $ branch ['version ' ][1 ];
167- $ branch ['jobs ' ] = select_jobs ($ trigger , $ labels , $ php_version , $ branch ['ref ' ], $ comprehensive );
167+ $ branch ['jobs ' ] = select_jobs ($ trigger , $ labels , $ php_version , $ branch ['ref ' ], $ all_variations );
168168 $ branch ['config ' ]['ubuntu_version ' ] = version_compare ($ php_version , '8.5 ' , '>= ' ) ? '24.04 ' : '22.04 ' ;
169169}
170170
171171$ f = fopen (getenv ('GITHUB_OUTPUT ' ), 'a ' );
172172fwrite ($ f , 'branches= ' . json_encode ($ branches , JSON_UNESCAPED_SLASHES ) . "\n" );
173- fwrite ($ f , 'comprehensive = ' . json_encode ($ comprehensive , JSON_UNESCAPED_SLASHES ) . "\n" );
173+ fwrite ($ f , 'all_variations = ' . json_encode ($ all_variations , JSON_UNESCAPED_SLASHES ) . "\n" );
174174fclose ($ f );
0 commit comments