Skip to content

dispatch-single-ts-single-icu-all-php-intl #26

dispatch-single-ts-single-icu-all-php-intl

dispatch-single-ts-single-icu-all-php-intl #26

name: 'dispatch-single-ts-single-icu-all-php-intl'
on:
workflow_dispatch:
inputs:
icu:
description: ICU version
required: true
ts:
description: thread-safety
required: true
rebuild:
description: rebuild
required: false
jobs:
php-intl:
container: ubuntu:focal
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
name: php-intl
steps:
- name: ${{github.event.inputs.php}}
id: print_details
run: |
echo sender=${{github.event.sender.login}}
echo ICU=${{github.event.inputs.icu}}
echo TS=${{github.event.inputs.ts}}
- name: Checkout
uses: actions/checkout@v3
- name: Install requirements
run: bash src/install-requirements.sh
env:
TS: ${{ github.event.inputs.ts }}
VERSION: ${{ matrix.php }}
- name: Checkout
uses: actions/checkout@v3
- name: Update intl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ICU: ${{ github.event.inputs.icu }}
REPO: ${{ github.repository }}
TS: ${{ github.event.inputs.ts }}
VERSION: ${{ matrix.php }}
WORKSPACE: ${{ github.workspace }}
run: |
existing_version=$(gh release view intl 2>/dev/null | grep -Po "$VERSION-$ICU" | head -n 1)
if [ "$VERSION-$ICU" != "$existing_version" ] || [ "x${{github.event.inputs.rebuild}}" = "xtrue" ]; then
bash src/build-intl.sh
bash src/release-intl.sh
else
echo "intl $VERSION-$ICU build exists"
fi