2019-09-06 05:17:43 +05:30
|
|
|
param (
|
2019-12-26 18:31:18 +05:30
|
|
|
[Parameter(Position = 0, Mandatory = $true)]
|
|
|
|
[ValidateNotNull()]
|
|
|
|
[ValidateLength(1, [int]::MaxValue)]
|
|
|
|
[string]
|
2021-11-25 17:34:13 +05:30
|
|
|
$version = '8.1',
|
2019-12-26 18:31:18 +05:30
|
|
|
[Parameter(Position = 1, Mandatory = $true)]
|
|
|
|
[ValidateNotNull()]
|
|
|
|
[ValidateLength(1, [int]::MaxValue)]
|
|
|
|
[string]
|
2022-01-29 12:14:42 +05:30
|
|
|
$ini = 'production'
|
2019-09-06 05:17:43 +05:30
|
|
|
)
|
|
|
|
|
2020-05-27 16:23:52 +05:30
|
|
|
# Function to log start of a operation.
|
2019-10-17 01:41:13 +05:30
|
|
|
Function Step-Log($message) {
|
2019-10-23 15:27:40 +05:30
|
|
|
printf "\n\033[90;1m==> \033[0m\033[37;1m%s \033[0m\n" $message
|
2019-10-17 01:41:13 +05:30
|
|
|
}
|
|
|
|
|
2020-05-27 16:23:52 +05:30
|
|
|
# Function to log result of a operation.
|
2019-10-17 01:41:13 +05:30
|
|
|
Function Add-Log($mark, $subject, $message) {
|
2020-10-17 04:13:36 +05:30
|
|
|
if ($mark -eq $tick) {
|
|
|
|
printf "\033[32;1m%s \033[0m\033[34;1m%s \033[0m\033[90;1m%s \033[0m\n" $mark $subject $message
|
|
|
|
} else {
|
|
|
|
printf "\033[31;1m%s \033[0m\033[34;1m%s \033[0m\033[90;1m%s \033[0m\n" $mark $subject $message
|
2020-11-25 05:39:44 +05:30
|
|
|
if($env:fail_fast -eq 'true') {
|
2020-10-17 04:13:36 +05:30
|
|
|
exit 1;
|
|
|
|
}
|
|
|
|
}
|
2019-10-17 01:41:13 +05:30
|
|
|
}
|
|
|
|
|
2020-06-03 13:37:25 +05:30
|
|
|
# Function to add a line to a powershell profile safely.
|
|
|
|
Function Add-ToProfile {
|
|
|
|
param(
|
|
|
|
[Parameter(Position = 0, Mandatory = $true)]
|
|
|
|
[ValidateNotNull()]
|
|
|
|
[ValidateLength(1, [int]::MaxValue)]
|
|
|
|
[string]
|
|
|
|
$input_profile,
|
|
|
|
[Parameter(Position = 1, Mandatory = $true)]
|
|
|
|
[ValidateNotNull()]
|
|
|
|
[ValidateLength(1, [int]::MaxValue)]
|
|
|
|
[string]
|
|
|
|
$search,
|
|
|
|
[Parameter(Position = 2, Mandatory = $true)]
|
|
|
|
[ValidateNotNull()]
|
|
|
|
[ValidateLength(1, [int]::MaxValue)]
|
|
|
|
[string]
|
|
|
|
$value
|
|
|
|
)
|
|
|
|
if($null -eq (Get-Content $input_profile | findstr $search)) {
|
|
|
|
Add-Content -Path $input_profile -Value $value
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-05-27 16:23:52 +05:30
|
|
|
# Function to fetch PATH from the registry.
|
2020-05-05 00:06:09 +05:30
|
|
|
Function Get-PathFromRegistry {
|
2020-06-03 13:37:25 +05:30
|
|
|
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","User") + ";" +
|
|
|
|
[System.Environment]::GetEnvironmentVariable("Path","Machine")
|
|
|
|
Add-ToProfile $current_profile 'Get-PathFromRegistry' 'Function Get-PathFromRegistry { $env:Path = [System.Environment]::GetEnvironmentVariable("Path", "User") + ";" + [System.Environment]::GetEnvironmentVariable("Path", "Machine") }; Get-PathFromRegistry'
|
2020-05-05 00:06:09 +05:30
|
|
|
}
|
|
|
|
|
2020-05-27 16:23:52 +05:30
|
|
|
# Function to add a location to PATH.
|
2020-05-05 00:06:09 +05:30
|
|
|
Function Add-Path {
|
|
|
|
param(
|
|
|
|
[string]$PathItem
|
|
|
|
)
|
2022-01-11 06:04:19 +05:30
|
|
|
if(-not(Test-Path $PathItem) -or "$env:PATH;".contains("$PathItem;")) {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
if ($env:GITHUB_PATH) {
|
|
|
|
Add-Content $PathItem -Path $env:GITHUB_PATH -Encoding utf8
|
|
|
|
} else {
|
|
|
|
$newPath = (Get-ItemProperty -Path 'hkcu:\Environment' -Name PATH).Path.replace("$PathItem;", '')
|
|
|
|
$newPath = $PathItem + ';' + $newPath
|
|
|
|
Set-ItemProperty -Path 'hkcu:\Environment' -Name Path -Value $newPath
|
|
|
|
Get-PathFromRegistry
|
|
|
|
}
|
2020-05-05 00:06:09 +05:30
|
|
|
}
|
|
|
|
|
2022-01-18 04:41:51 +05:30
|
|
|
# Function to add an environment variable.
|
|
|
|
Function Add-Env {
|
|
|
|
param(
|
|
|
|
[string]$EnvName,
|
|
|
|
[string]$EnvValue
|
|
|
|
)
|
|
|
|
if ($env:GITHUB_ENV) {
|
|
|
|
Add-Content "$EnvName=$EnvValue" -Path $env:GITHUB_ENV -Encoding utf8
|
|
|
|
} else {
|
|
|
|
Set-ItemProperty -Path 'hkcu:\Environment' -Name $EnvName -Value $EnvValue
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# Function to add environment variables using a PATH.
|
|
|
|
Function Add-EnvPATH {
|
|
|
|
param(
|
|
|
|
[string]$EnvPATH
|
|
|
|
)
|
|
|
|
if(-not(Test-Path $EnvPATH)) {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
$env_file = $current_profile
|
|
|
|
if ($env:GITHUB_ENV) {
|
|
|
|
$env_file = $env:GITHUB_ENV
|
|
|
|
}
|
|
|
|
Get-Content -Path $EnvPATH | Add-Content -Path $env_file -Encoding utf8
|
|
|
|
}
|
|
|
|
|
2020-09-06 14:17:06 +05:30
|
|
|
# Function to make sure printf is in PATH.
|
|
|
|
Function Add-Printf {
|
|
|
|
if (-not(Test-Path "C:\Program Files\Git\usr\bin\printf.exe")) {
|
|
|
|
if(Test-Path "C:\msys64\usr\bin\printf.exe") {
|
2021-08-25 09:46:36 +05:30
|
|
|
New-Item -Path $bin_dir\printf.exe -ItemType SymbolicLink -Value C:\msys64\usr\bin\printf.exe -Force > $null 2>&1
|
2020-09-06 14:17:06 +05:30
|
|
|
} else {
|
2020-11-11 02:23:45 +05:30
|
|
|
Invoke-WebRequest -Uri "$github/shivammathur/printf/releases/latest/download/printf-x64.zip" -OutFile "$bin_dir\printf.zip"
|
2020-09-06 14:17:06 +05:30
|
|
|
Expand-Archive -Path $bin_dir\printf.zip -DestinationPath $bin_dir -Force
|
|
|
|
}
|
|
|
|
} else {
|
2021-08-25 09:46:36 +05:30
|
|
|
New-Item -Path $bin_dir\printf.exe -ItemType SymbolicLink -Value "C:\Program Files\Git\usr\bin\printf.exe" -Force > $null 2>&1
|
2020-09-06 14:17:06 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-05-27 16:23:52 +05:30
|
|
|
# Function to get a clean Powershell profile.
|
2020-05-05 00:06:09 +05:30
|
|
|
Function Get-CleanPSProfile {
|
|
|
|
if(-not(Test-Path -LiteralPath $profile)) {
|
2021-08-25 09:46:36 +05:30
|
|
|
New-Item -Path $profile -ItemType "file" -Force > $null 2>&1
|
2020-05-05 00:06:09 +05:30
|
|
|
}
|
|
|
|
Set-Content $current_profile -Value ''
|
2020-06-03 13:37:25 +05:30
|
|
|
Add-ToProfile $profile $current_profile.replace('\', '\\') ". $current_profile"
|
2020-05-05 00:06:09 +05:30
|
|
|
}
|
|
|
|
|
2020-10-30 11:28:54 +05:30
|
|
|
# Function to install a powershell package from GitHub.
|
2020-11-08 13:06:21 +05:30
|
|
|
Function Install-PSPackage() {
|
2020-10-30 11:28:54 +05:30
|
|
|
param(
|
|
|
|
[Parameter(Position = 0, Mandatory = $true)]
|
|
|
|
$package,
|
|
|
|
[Parameter(Position = 1, Mandatory = $true)]
|
|
|
|
$psm1_path,
|
|
|
|
[Parameter(Position = 2, Mandatory = $true)]
|
2021-04-18 05:08:38 +05:30
|
|
|
$url,
|
|
|
|
[Parameter(Position = 3, Mandatory = $true)]
|
|
|
|
$cmdlet
|
2020-10-30 11:28:54 +05:30
|
|
|
)
|
|
|
|
$module_path = "$bin_dir\$psm1_path.psm1"
|
2020-07-15 09:45:40 +05:30
|
|
|
if(-not (Test-Path $module_path -PathType Leaf)) {
|
2020-10-30 11:28:54 +05:30
|
|
|
$zip_file = "$bin_dir\$package.zip"
|
2020-11-11 02:23:45 +05:30
|
|
|
Invoke-WebRequest -Uri $url -OutFile $zip_file
|
2020-08-25 18:00:03 +02:00
|
|
|
Expand-Archive -Path $zip_file -DestinationPath $bin_dir -Force
|
2020-05-05 00:06:09 +05:30
|
|
|
}
|
2020-06-03 13:37:25 +05:30
|
|
|
Import-Module $module_path
|
2020-10-30 11:28:54 +05:30
|
|
|
Add-ToProfile $current_profile "$package-search" "Import-Module $module_path"
|
2021-04-18 05:08:38 +05:30
|
|
|
|
|
|
|
if($null -eq (Get-Command $cmdlet -ErrorAction SilentlyContinue)) {
|
2021-12-27 19:53:04 +05:30
|
|
|
Install-Module -Name $package -Force
|
2021-04-18 05:08:38 +05:30
|
|
|
}
|
2020-03-16 11:18:01 +05:30
|
|
|
}
|
|
|
|
|
2021-10-14 22:08:11 +05:30
|
|
|
# Function to add CA certificates to PHP.
|
|
|
|
Function Add-PhpCAInfo {
|
|
|
|
try {
|
|
|
|
Update-PhpCAInfo -Path $php_dir -Source Curl
|
|
|
|
} catch {
|
|
|
|
Add-Log $cross PHP "Could not fetch CA certificate bundle from Curl"
|
|
|
|
Update-PhpCAInfo -Path $php_dir -Source CurrentUser
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-01-02 19:07:31 +05:30
|
|
|
# Function to set PHP config.
|
|
|
|
Function Add-PhpConfig {
|
2022-01-25 13:43:49 +05:30
|
|
|
$current = Get-Content -Path $php_dir\php.ini-current -ErrorAction SilentlyContinue
|
|
|
|
if($ini -eq 'development' -or ($ini -eq 'production' -and $current -and $current -ne 'production')) {
|
|
|
|
Copy-Item -Path $php_dir\php.ini-$ini -Destination $php_dir\php.ini -Force
|
|
|
|
} elseif ($ini -eq 'none') {
|
|
|
|
Set-Content -Path $php_dir\php.ini -Value ''
|
|
|
|
}
|
|
|
|
Set-Content -Path $php_dir\php.ini-current -Value $ini
|
2022-01-29 12:14:42 +05:30
|
|
|
$ini_config_dir = "$src\configs\ini"
|
2022-01-02 19:07:31 +05:30
|
|
|
$ini_files = @("$ini_config_dir\php.ini")
|
|
|
|
$version -match $jit_versions -and ($ini_files += ("$ini_config_dir\jit.ini")) > $null 2>&1
|
|
|
|
$version -match $xdebug3_versions -and ($ini_files += ("$ini_config_dir\xdebug.ini")) > $null 2>&1
|
2022-01-25 13:43:49 +05:30
|
|
|
Add-Content -Path $ini_config_dir\php.ini -Value extension_dir=$ext_dir
|
2022-01-02 19:07:31 +05:30
|
|
|
Get-Content -Path $ini_files | Add-Content -Path $php_dir\php.ini
|
|
|
|
}
|
|
|
|
|
2022-01-26 16:41:29 +05:30
|
|
|
# Function to get PHP from GitHub releases cache
|
|
|
|
Function Set-PhpCache {
|
|
|
|
try {
|
|
|
|
$release = Invoke-RestMethod https://api.github.com/repos/shivammathur/php-builder-windows/releases/tags/php$version
|
|
|
|
$asset = $release.assets | ForEach-Object {
|
|
|
|
if($_.name -match "php-$version.[0-9]+$env:PHPTS-Win32-.*-$arch.zip") {
|
|
|
|
return $_.name
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Invoke-WebRequest -UseBasicParsing -Uri $php_builder/releases/download/php$version/$asset -OutFile $php_dir\$asset
|
|
|
|
Set-PhpDownloadCache -Path $php_dir CurrentUser
|
|
|
|
} catch { }
|
|
|
|
}
|
|
|
|
|
2022-01-27 08:09:35 +05:30
|
|
|
# Function to install nightly version of PHP
|
|
|
|
Function Install-PhpNightly {
|
|
|
|
Invoke-WebRequest -UseBasicParsing -Uri $php_builder/releases/latest/download/Get-PhpNightly.ps1 -OutFile $php_dir\Get-PhpNightly.ps1 > $null 2>&1
|
|
|
|
& $php_dir\Get-PhpNightly.ps1 -Architecture $arch -ThreadSafe $ts -Path $php_dir -Version $version > $null 2>&1
|
|
|
|
if(Test-Path $php_dir\COMMIT) {
|
|
|
|
return " ($( Get-Content $php_dir\COMMIT ))"
|
|
|
|
}
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2019-12-26 18:31:18 +05:30
|
|
|
# Variables
|
|
|
|
$tick = ([char]8730)
|
|
|
|
$cross = ([char]10007)
|
|
|
|
$php_dir = 'C:\tools\php'
|
2020-05-05 00:06:09 +05:30
|
|
|
$ext_dir = "$php_dir\ext"
|
2020-06-03 13:37:25 +05:30
|
|
|
$bin_dir = $php_dir
|
2020-10-30 11:28:54 +05:30
|
|
|
$github = 'https://github.com'
|
2021-04-13 16:55:32 +05:30
|
|
|
$php_builder = "$github/shivammathur/php-builder-windows"
|
2020-05-05 00:06:09 +05:30
|
|
|
$current_profile = "$env:TEMP\setup-php.ps1"
|
2019-12-26 18:31:18 +05:30
|
|
|
$ProgressPreference = 'SilentlyContinue'
|
2021-02-23 13:59:28 +05:30
|
|
|
$jit_versions = '8.[0-9]'
|
2021-12-06 10:13:24 +05:30
|
|
|
$nightly_versions = '8.[2-9]'
|
2022-01-02 19:07:31 +05:30
|
|
|
$xdebug3_versions = "7.[2-4]|8.[0-9]"
|
2020-11-08 13:06:21 +05:30
|
|
|
$enable_extensions = ('openssl', 'curl', 'mbstring')
|
2020-05-05 00:06:09 +05:30
|
|
|
|
2020-01-20 21:50:44 +05:30
|
|
|
$arch = 'x64'
|
2020-05-05 00:06:09 +05:30
|
|
|
if(-not([Environment]::Is64BitOperatingSystem) -or $version -lt '7.0') {
|
|
|
|
$arch = 'x86'
|
2020-01-20 21:50:44 +05:30
|
|
|
}
|
2019-12-26 18:31:18 +05:30
|
|
|
|
2020-05-05 00:06:09 +05:30
|
|
|
$ts = $env:PHPTS -eq 'ts'
|
|
|
|
if($env:PHPTS -ne 'ts') {
|
2022-01-26 16:41:29 +05:30
|
|
|
$env:PHPTS = '-nts'
|
|
|
|
} else {
|
|
|
|
$env:PHPTS = ''
|
2020-05-05 00:06:09 +05:30
|
|
|
}
|
2022-01-12 21:15:11 +05:30
|
|
|
if($env:RUNNER -eq 'self-hosted' -or (-not($env:ImageOS) -and -not($env:ImageVersion))) {
|
2020-05-05 00:06:09 +05:30
|
|
|
$bin_dir = 'C:\tools\bin'
|
|
|
|
$php_dir = "$php_dir$version"
|
|
|
|
$ext_dir = "$php_dir\ext"
|
|
|
|
Get-CleanPSProfile >$null 2>&1
|
2021-08-25 09:46:36 +05:30
|
|
|
New-Item $bin_dir -Type Directory -Force > $null 2>&1
|
2020-05-05 00:06:09 +05:30
|
|
|
Add-Path -PathItem $bin_dir
|
|
|
|
if($version -lt 5.6) {
|
|
|
|
Add-Log $cross "PHP" "PHP $version is not supported on self-hosted runner"
|
2020-06-07 02:41:28 +05:30
|
|
|
Start-Sleep 1
|
2020-05-05 00:06:09 +05:30
|
|
|
exit 1
|
|
|
|
}
|
2022-01-27 07:05:46 +05:30
|
|
|
if ($null -eq (Get-Module -ListAvailable -Name VcRedist)) {
|
2020-06-03 13:37:25 +05:30
|
|
|
Install-Module -Name VcRedist -Force
|
|
|
|
}
|
2021-08-25 09:46:36 +05:30
|
|
|
New-Item $php_dir -Type Directory -Force > $null 2>&1
|
2020-05-05 00:06:09 +05:30
|
|
|
Add-Path -PathItem $php_dir
|
|
|
|
setx PHPROOT $php_dir >$null 2>&1
|
|
|
|
} else {
|
|
|
|
$current_profile = "$PSHOME\Profile.ps1"
|
2020-06-03 13:37:25 +05:30
|
|
|
if(-not(Test-Path -LiteralPath $current_profile)) {
|
|
|
|
New-Item -Path $current_profile -ItemType "file" -Force >$null 2>&1
|
|
|
|
}
|
2020-05-05 00:06:09 +05:30
|
|
|
}
|
2020-09-06 14:17:06 +05:30
|
|
|
|
2022-01-29 12:14:42 +05:30
|
|
|
$src = Join-Path -Path $PSScriptRoot -ChildPath \..
|
|
|
|
. $src\scripts\tools\add_tools.ps1
|
|
|
|
. $src\scripts\extensions\add_extensions.ps1
|
2021-02-20 10:15:25 +05:30
|
|
|
|
2020-09-06 14:17:06 +05:30
|
|
|
Add-Printf >$null 2>&1
|
2019-12-26 18:31:18 +05:30
|
|
|
Step-Log "Setup PhpManager"
|
2021-12-08 20:34:44 +05:30
|
|
|
Install-PSPackage PhpManager PhpManager\PhpManager "$github/mlocati/powershell-phpmanager/releases/latest/download/PhpManager.zip" Get-Php >$null 2>&1
|
2019-12-26 18:31:18 +05:30
|
|
|
Add-Log $tick "PhpManager" "Installed"
|
|
|
|
|
2020-05-05 00:06:09 +05:30
|
|
|
Step-Log "Setup PHP"
|
2019-12-26 18:31:18 +05:30
|
|
|
$installed = $null
|
|
|
|
if (Test-Path -LiteralPath $php_dir -PathType Container) {
|
|
|
|
try {
|
2021-11-25 23:24:48 +05:30
|
|
|
if(Test-Path $php_dir\php.ini) {
|
|
|
|
Rename-Item -Path $php_dir\php.ini -NewName 'php.ini.bak'
|
|
|
|
}
|
|
|
|
$installed = Get-Php -Path $php_dir -ErrorAction SilentlyContinue 2>$null 3>$null
|
|
|
|
if(Test-Path $php_dir\php.ini.bak) {
|
|
|
|
Rename-Item -Path $php_dir\php.ini.bak -NewName 'php.ini'
|
|
|
|
}
|
2020-05-05 00:06:09 +05:30
|
|
|
} catch { }
|
2019-12-23 23:19:38 +05:30
|
|
|
}
|
2020-01-16 10:16:44 +05:30
|
|
|
$status = "Installed"
|
2021-07-12 17:00:40 +05:30
|
|
|
$extra_version = ""
|
2020-01-20 21:50:44 +05:30
|
|
|
if ($null -eq $installed -or -not("$($installed.Version).".StartsWith(($version -replace '^(\d+(\.\d+)*).*', '$1.'))) -or $ts -ne $installed.ThreadSafe) {
|
2022-01-27 07:05:46 +05:30
|
|
|
if ($version -lt '7.0' -and ($null -eq (Get-Module -ListAvailable -Name VcRedist))) {
|
2021-12-08 20:34:44 +05:30
|
|
|
Install-PSPackage VcRedist VcRedist-main\VcRedist\VcRedist "$github/aaronparker/VcRedist/archive/main.zip" Get-VcList >$null 2>&1
|
2019-12-26 18:31:18 +05:30
|
|
|
}
|
2020-12-17 04:20:39 +05:30
|
|
|
try {
|
2021-02-23 13:59:28 +05:30
|
|
|
if ($version -match $nightly_versions) {
|
2022-01-27 08:09:35 +05:30
|
|
|
$extra_version = Install-PhpNightly
|
2020-12-17 04:20:39 +05:30
|
|
|
} else {
|
2022-01-26 16:41:29 +05:30
|
|
|
Set-PhpCache
|
2022-01-25 13:43:49 +05:30
|
|
|
Install-Php -Version $version -Architecture $arch -ThreadSafe $ts -InstallVC -Path $php_dir -TimeZone UTC -InitialPhpIni production -Force > $null 2>&1
|
2020-12-17 04:20:39 +05:30
|
|
|
}
|
2022-01-25 13:43:49 +05:30
|
|
|
Add-PhpConfig
|
2020-12-17 04:20:39 +05:30
|
|
|
} catch { }
|
2020-01-16 10:16:44 +05:30
|
|
|
} else {
|
2020-05-05 00:06:09 +05:30
|
|
|
if($env:update -eq 'true') {
|
2020-02-28 13:19:12 +05:30
|
|
|
Update-Php $php_dir >$null 2>&1
|
2020-02-13 22:39:00 +05:30
|
|
|
$status = "Updated to"
|
|
|
|
} else {
|
2020-01-16 10:16:44 +05:30
|
|
|
$status = "Found"
|
|
|
|
}
|
2022-01-25 13:43:49 +05:30
|
|
|
Add-PhpConfig
|
2019-12-26 18:31:18 +05:30
|
|
|
}
|
|
|
|
|
2019-12-29 00:29:28 +05:30
|
|
|
$installed = Get-Php -Path $php_dir
|
2020-12-17 04:20:39 +05:30
|
|
|
if($installed.MajorMinorVersion -ne $version) {
|
|
|
|
Add-Log $cross "PHP" "Could not setup PHP $version"
|
|
|
|
exit 1
|
|
|
|
}
|
2020-02-06 05:24:45 +05:30
|
|
|
if($version -lt "5.5") {
|
2022-01-27 06:36:42 +05:30
|
|
|
('libeay32.dll', 'ssleay32.dll') | ForEach-Object -Parallel { Invoke-WebRequest -Uri "$using:php_builder/releases/download/openssl-1.0.2u/$_" -OutFile $using:php_dir\$_ >$null 2>&1 }
|
2020-02-06 05:24:45 +05:30
|
|
|
} else {
|
2020-11-08 13:06:21 +05:30
|
|
|
$enable_extensions += ('opcache')
|
2020-02-06 05:24:45 +05:30
|
|
|
}
|
2020-11-08 13:06:21 +05:30
|
|
|
Enable-PhpExtension -Extension $enable_extensions -Path $php_dir
|
2021-10-14 22:08:11 +05:30
|
|
|
Add-PhpCAInfo
|
2022-01-29 12:14:42 +05:30
|
|
|
Copy-Item -Path $src\configs\pm\*.json -Destination $env:RUNNER_TOOL_CACHE
|
2021-07-12 17:00:40 +05:30
|
|
|
Write-Output "::set-output name=php-version::$($installed.FullVersion)"
|
|
|
|
Add-Log $tick "PHP" "$status PHP $($installed.FullVersion)$extra_version"
|