-
-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (41 loc) · 1.36 KB
/
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
name: 'php-intl'
on:
workflow_dispatch:
inputs:
rebuild:
description: rebuild
required: false
jobs:
php-intl:
container: ubuntu:bionic
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']
icu: [72.1, 71.1, 70.1, 69.1, 68.2, 68.1, 67.1, 66.1, 65.1, 64.2, 63.2, 62.2, 61.2, 60.3, 59.2, 58.3, 57.2, 56.2, 55.2, 54.2, 53.2, 52.2, 51.3, 50.2]
name: php-intl
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install requirements
run: bash src/install-requirements.sh
env:
VERSION: ${{ matrix.php }}
- name: Checkout
uses: actions/checkout@v3
- name: Update intl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ICU: ${{ matrix.icu }}
REPO: ${{ github.repository }}
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