mirror of
https://github.com/php-win-ext/php-windows-builder.git
synced 2026-03-24 09:02:06 +01:00
39 lines
853 B
YAML
39 lines
853 B
YAML
name: build-php
|
|
description: Build PHP
|
|
author: php
|
|
|
|
branding:
|
|
icon: package
|
|
color: purple
|
|
|
|
inputs:
|
|
php-version:
|
|
description: PHP version to build
|
|
required: true
|
|
arch:
|
|
description: Architecture to build
|
|
required: true
|
|
ts:
|
|
description: Thread safety to build
|
|
required: true
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build PHP
|
|
shell: pwsh
|
|
run: |
|
|
Import-Module ${{ github.action_path }}\BuildPhp -Force
|
|
Invoke-PhpBuild -PhpVersion ${{inputs.php-version}} `
|
|
-Arch ${{inputs.arch}} `
|
|
-Ts ${{inputs.ts}}
|
|
|
|
- name: Upload artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: artifacts-${{inputs.php-version}}-${{inputs.arch}}-${{inputs.ts}}
|
|
path: artifacts/*
|