Skip to content

fix: Windows CI - use PHP SDK binary tools via pwsh (matches core repo) #7

fix: Windows CI - use PHP SDK binary tools via pwsh (matches core repo)

fix: Windows CI - use PHP SDK binary tools via pwsh (matches core repo) #7

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-version: ['8.2', '8.3', '8.4']
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: mbstring, intl
tools: phpize, composer
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libssl-dev zlib1g-dev libcurl4-openssl-dev
- name: Build extension
run: |
phpize
./configure --enable-kislayphp_queue
make
- name: Run tests
run: make test
windows:
runs-on: windows-latest
continue-on-error: true
strategy:
fail-fast: false
matrix:
php-version: ['8.2', '8.3']
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: mbstring
tools: composer
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
- name: Download PHP SDK Binary Tools
shell: pwsh
run: |
git clone --depth=1 https://github.com/php/php-sdk-binary-tools.git C:\php-sdk
- name: Build extension (Windows)
shell: pwsh
run: |
$phpArch = if ([Environment]::Is64BitOperatingSystem) { "x64" } else { "x86" }
$sdkBat = "C:\php-sdk\phpsdk-vs17-$phpArch.bat"
$buildScript = @"
cd /d ${{ github.workspace }}
phpize
configure --enable-kislayphp_queue
nmake
"@

Check failure on line 76 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 76
$buildScript | Out-File -FilePath C:\build_kislay.bat -Encoding ASCII
$proc = Start-Process -FilePath "cmd.exe" ``
-ArgumentList "/c ``"$sdkBat``" -t ``"C:\build_kislay.bat``"" ``
-Wait -PassThru -NoNewWindow
exit $proc.ExitCode