mirror of
https://github.com/php-win-ext/php-windows-builder.git
synced 2026-03-24 17:12:08 +01:00
35 lines
832 B
YAML
35 lines
832 B
YAML
name: Build PHP
|
|
run-name: Build PHP ${{ inputs.php-version }}
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
php-version:
|
|
description: 'PHP version to build'
|
|
required: true
|
|
jobs:
|
|
php:
|
|
strategy:
|
|
matrix:
|
|
arch: [x64, x86]
|
|
ts: [nts, ts]
|
|
runs-on: ${{ startsWith(inputs.php-version, '8.4') && 'windows-2022' || 'windows-2019' }}
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build
|
|
uses: ./php
|
|
with:
|
|
php-version: ${{ github.event.inputs.php-version }}
|
|
arch: ${{ matrix.arch }}
|
|
ts: ${{ matrix.ts }}
|
|
|
|
artifacts:
|
|
runs-on: ubuntu-latest
|
|
needs: php
|
|
steps:
|
|
- name: Upload artifacts
|
|
uses: actions/upload-artifact/merge@v4
|
|
with:
|
|
name: artifacts
|
|
delete-merged: true |