mirror of
https://github.com/php-win-ext/setup-php-sdk.git
synced 2026-03-24 00:52:09 +01:00
a2fae4d5f3e924faeeee37e6f8a8f8c507b34eea
* Adding missing PHP 7.3 entry Add this as it's no longer part of `https://windows.php.net/downloads/releases/releases.json`. Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de> Closes #7.
Setup PHP-SDK Action
Github Action to set up an environment for building and testing PHP extensions on Windows.
Example Usage
- id: setup-php-sdk
uses: cmb69/setup-php-sdk@v0.1
with:
version: 8.0
arch: x64
ts: nts
- uses: ilammy/msvc-dev-cmd@v1
with:
arch: x64
toolset: ${{steps.setup-php-sdk.outputs.toolset}}
- run: phpize
- run: configure --enable-dbase --with-prefix=${{steps.setup-php-sdk.outputs.prefix}}
- run: nmake
- run: nmake test TESTS=tests
Inputs
version: the PHP version to build for (7.0,7.1,7.2,7.3,7.4,8.0or8.1)arch: the architecture to build for (x64orx86)ts: thread-safety (ntsorts)deps: dependency libraries to install; for now, only core dependencies are available
Outputs
toolset: the required toolset version; needs to be passed to the ilammy/msvc-dev-cmd actionprefix: the prefix of the PHP installation; needs to be passed to configure
Languages
PowerShell
100%