Skip to content

Commit 8d173cc

Browse files
committed
Add patches in Add-Extension
1 parent 45e77de commit 8d173cc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

extension/BuildPhpExtension/private/Add-Extension.ps1

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ Function Add-Extension {
2626
$currentDirectory = (Get-Location).Path
2727
& tar -xzf "$Extension.tgz" -C $currentDirectory
2828
Set-Location "$Extension-*"
29+
# Apply patches only for php/php-windows-builder and shivammathur/php-windows-builder
30+
if($null -ne $env:GITHUB_REPOSITORY) {
31+
if($env:GITHUB_REPOSITORY -eq 'php/php-windows-builder' -or $env:GITHUB_REPOSITORY -eq 'shivammathur/php-windows-builder') {
32+
if(Test-Path -PATH $PSScriptRoot\..\patches\$Extension.ps1) {
33+
. $PSScriptRoot\..\patches\$Extension.ps1
34+
}
35+
}
36+
}
2937
$bat_content = @()
3038
$bat_content += ""
3139
$bat_content += "call phpize 2>&1"

0 commit comments

Comments
 (0)