@@ -2,8 +2,8 @@ name: 'Phalcon PHP extension build action (Windows)'
22description : ' Build Phalcon Framework for Windows according to various PHP versions.'
33
44inputs :
5- pecl :
6- description : ' PECL package path '
5+ source :
6+ description : ' Path to extension source directory (build/phalcon) '
77 required : true
88 php-version :
99 description : ' PHP version'
@@ -58,15 +58,15 @@ runs:
5858 $OsName = "${{ inputs.os }}".replace('-','').ToLower()
5959 $ReleaseFolder = if ("${{ inputs.ts }}" -eq "ts") { "Release_TS" } else { "Release" }
6060 $ReleaseFolder = if ("${{ inputs.arch }}" -eq "x64") { "x64\${ReleaseFolder}" } else { "${ReleaseFolder}" }
61- $ReleaseDllPath = "${{ inputs.tools-dir }}\pecl\phalcon\phalcon-${{ inputs.phalcon-version }}\${ReleaseFolder}\php_phalcon.dll"
61+ $SourceDir = "${{ inputs.source }}"
62+ $ReleaseDllPath = "${SourceDir}\${ReleaseFolder}\php_phalcon.dll"
6263 $ReleaseZipBall = "phalcon-php${{ inputs.php-version }}-${{ inputs.ts }}-${OsName}-${{ inputs.arch }}"
6364
6465 Write-Output "RELEASE_FOLDER=$ReleaseFolder" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
6566 Write-Output "RELEASE_DLL_PATH=$ReleaseDllPath" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
6667 Write-Output "RELEASE_ZIPBALL=$ReleaseZipBall" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
6768 Write-Output "PHP_ROOT=${{ inputs.tools-dir }}\php" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
68- Write-Output "PHP_PECL_PATH=${{ inputs.tools-dir }}\pecl" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
69- Write-Output "PHP_DEVPACK=${{ inputs.tools-dir }}\php-devpack" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
69+ Write-Output "SOURCE_DIR=$SourceDir" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
7070
7171 - name : Setup PHP SDK tool kit
7272 uses : zephir-lang/setup-php-sdk@v1
@@ -94,24 +94,18 @@ runs:
9494 shell : powershell
9595 run : Get-Php (Get-Command php).Path
9696
97- - name : Install PECL Package
98- shell : powershell
99- run : |
100- .\.github\scripts\Expand-Item7zip.ps1 "${{ inputs.pecl }}" "${env:TEMP}"
101- .\.github\scripts\Expand-Item7zip.ps1 "${env:TEMP}\phalcon-pecl.tar" "${{ env.PHP_PECL_PATH }}\phalcon"
102-
10397 - name : Phalcon phpize
104- working-directory : ' ${{ env.PHP_PECL_PATH }}\phalcon\phalcon-${{ inputs.phalcon-version }}'
98+ working-directory : ${{ inputs.source }}
10599 shell : powershell
106100 run : phpize
107101
108102 - name : Phalcon Configure Project
109- working-directory : ' ${{ env.PHP_PECL_PATH }}\phalcon\phalcon-${{ inputs.phalcon-version }}'
103+ working-directory : ${{ inputs.source }}
110104 shell : powershell
111105 run : .\configure.bat --enable-phalcon
112106
113107 - name : Phalcon Build Project
114- working-directory : ' ${{ env.PHP_PECL_PATH }}\phalcon\phalcon-${{ inputs.phalcon-version }}'
108+ working-directory : ${{ inputs.source }}
115109 shell : powershell
116110 run : nmake
117111
@@ -127,4 +121,4 @@ runs:
127121
128122 - name : Check Phalcon Extension
129123 shell : powershell
130- run : php --ri phalcon
124+ run : php --ri phalcon
0 commit comments