forked from shivammathur/icu-intl
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 938 Bytes
/
dispatch-single-icu.yml
File metadata and controls
33 lines (33 loc) · 938 Bytes
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
name: 'dispatch-single-icu'
on:
workflow_dispatch:
inputs:
icu:
description: ICU version
required: true
rebuild:
description: rebuild
required: false
jobs:
icu:
runs-on: ${{ matrix.os }}
name: icu4c
strategy:
matrix:
os: [ubuntu-22.04, ubuntu-22.04-arm]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build icu
env:
ICU: ${{ github.event.inputs.icu }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WORKSPACE: ${{ github.workspace }}
run: |
existing_version=$(gh release view icu4c 2>/dev/null | grep -Po $ICU | head -n 1)
if [ "$ICU" != "$existing_version" ] || [ "x${{github.event.inputs.rebuild}}" = "xtrue" ]; then
bash src/build-icu4c.sh
bash src/release-icu4c.sh
else
echo "icu4c $ICU build exists"
fi