-
-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (51 loc) · 1.58 KB
/
dispatch-single-icu-all-php-intl.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: 'dispatch-single-icu-all-php-intl'
on:
workflow_dispatch:
inputs:
icu:
description: ICU version
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', '8.4']
ts: ['zts', 'nts']
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}}
- name: Checkout
uses: actions/checkout@v3
- name: Install requirements
run: bash src/install-requirements.sh
env:
TS: ${{ matrix.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: ${{ matrix.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