Skip to content

Commit b4936af

Browse files
committed
Fix extension copying, add php manager
1 parent c86275b commit b4936af

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

.github/actions/build-linux/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ runs:
3030
- name: Enable Zephir Parser
3131
shell: bash
3232
run: |
33-
cp ./modules/zephir_parser.so $(php -r 'echo ini_get("extension_dir");')/zephir_parser.so
33+
sudo cp ./modules/zephir_parser.so "$(php -r 'echo ini_get("extension_dir");')/zephir_parser.so"
3434
echo "extension=zephir_parser.so" > /etc/php/${{ matrix.php }}/cli/conf.d/20-zephir_parser.ini

.github/actions/build-mac/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ runs:
3232
- name: Enable Zephir Parser
3333
shell: bash
3434
run: |
35-
cp ./modules/zephir_parser.so $(php -r 'echo ini_get("extension_dir");')/zephir_parser.so
36-
echo "extension=zephir_parser.so" > /etc/php/${{ matrix.php }}/cli/conf.d/20-zephir_parser.ini
35+
cp ./modules/zephir_parser.so "$(php -r 'echo ini_get("extension_dir");')/zephir_parser.so"
36+
echo "extension=zephir_parser.so" > /usr/local/etc/php/${{ matrix.php }}/cli/conf.d/ext-zephir_parser.ini

.github/actions/build-win/action.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,17 @@ runs:
2626
mkdir ${{ env.CACHE_DIR }}\Choco
2727
choco install --no-progress -y --cache-location=${{ env.CACHE_DIR }}\Choco re2c
2828
29+
- name: Install PHP PowerShell Manager
30+
shell: powershell
31+
run: |
32+
Write-Output "Install PowerShell PHP Manager module"
33+
if (Get-Module -ListAvailable -Name PhpManager) {
34+
Write-Host "PhpManager powershell module exist, skip install"
35+
} else {
36+
Install-Module -Name PhpManager -Repository PSGallery -Force
37+
}
38+
Write-Output "::endgroup::"
39+
2940
- name: Setup PHP SDK tool kit
3041
uses: zephir-lang/setup-php-sdk@v1
3142
with:

0 commit comments

Comments
 (0)