Skip to content

Commit 5cc836e

Browse files
committed
run clang on "CI: Windows" label too
1 parent 5d83cbe commit 5cc836e

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/matrix.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,18 @@ function select_jobs($repository, $trigger, $nightly, $labels, $php_version, $re
144144
$jobs['SOLARIS'] = true;
145145
}
146146
if ($all_jobs || !$no_jobs || $test_windows) {
147-
$jobs['WINDOWS']['matrix'] = $all_variations
148-
? ['include' => [
147+
$windows_include = $all_variations
148+
? [
149149
['asan' => true, 'opcache' => true, 'x64' => true, 'zts' => true],
150150
['asan' => false, 'opcache' => false, 'x64' => false, 'zts' => false],
151-
['asan' => false, 'opcache' => true, 'x64' => true, 'zts' => true, 'clang' => true],
152-
]]
153-
: ['include' => [['asan' => false, 'opcache' => true, 'x64' => true, 'zts' => true]]];
151+
]
152+
: [
153+
['asan' => false, 'opcache' => true, 'x64' => true, 'zts' => true],
154+
];
155+
if ($all_variations || $test_windows) {
156+
$windows_include[] = ['asan' => false, 'opcache' => true, 'x64' => true, 'zts' => true, 'clang' => true];
157+
}
158+
$jobs['WINDOWS']['matrix'] = ['include' => $windows_include];
154159
$jobs['WINDOWS']['config'] = version_compare($php_version, '8.4', '>=')
155160
? ['vs_crt_version' => 'vs17']
156161
: ['vs_crt_version' => 'vs16'];

0 commit comments

Comments
 (0)