Skip to content

Build PHP 8.4.4

Build PHP 8.4.4 #31

Workflow file for this run

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
outputs:
artifact-id: ${{ steps.artifacts.outputs.artifact-id }}
steps:
- name: Upload artifacts
uses: actions/upload-artifact/merge@v4
id: artifacts
with:
name: artifacts
delete-merged: true
upload:
runs-on: ubuntu-latest
needs: artifacts
steps:
- name: Upload to downloads server
run: |
url="https://api.github.com/repos/${{ github.repository }}/actions/artifacts/${{ needs.artifacts.outputs.artifact-id }}/zip"
gh workflow run php.yml -R php/web-downloads -f url="$url" -f php-version=${{ inputs.php-version }}
env:
GITHUB_TOKEN: ${{ secrets.WINDOWS_BUILDS_TOKEN }}