Skip to content

Commit 1875026

Browse files
committed
Fix env vars, use copy files for linux ini file
1 parent 3101b9f commit 1875026

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@ runs:
3131
shell: bash
3232
run: |
3333
sudo cp ./modules/zephir_parser.so "$(php -r 'echo ini_get("extension_dir");')/zephir_parser.so"
34-
sudo echo "extension=zephir_parser.so" > /etc/php/${{ matrix.php }}/cli/conf.d/20-zephir_parser.ini
34+
echo "extension=zephir_parser.so" > ./ext-zephir_parser.ini
35+
sudo cp ./ext-zephir_parser.ini /etc/php/${{ matrix.php }}/cli/conf.d/20-zephir_parser.ini

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,11 @@ jobs:
9292
shell: bash
9393
run: |
9494
php --ri zephir_parser
95-
TEST_PHP_EXECUTABLE=$(which php) php run-tests.php -q
95+
if [ "${{ runner.os }}" -eq 'Windows' ]; then
96+
TEST_PHP_EXECUTABLE=C:\tools\php\php.exe php run-tests.php -q
97+
else
98+
TEST_PHP_EXECUTABLE=$(which php) php run-tests.php -q
99+
fi
96100
env:
97101
NO_INTERACTION: 1
98102
REPORT_EXIT_STATUS: 1

0 commit comments

Comments
 (0)