mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-05 13:35:32 +00:00
ICU-21649 Adds build and execution of Unicode update tools to GHA CI.
Checks that the build process completes without failure and that the generated data is identical with the data currently in the repository. ICU-21649 Fix trigger mechanism.
This commit is contained in:
parent
f13a67956a
commit
b9311e2f54
1 changed files with 36 additions and 1 deletions
37
.github/workflows/icu_ci.yml
vendored
37
.github/workflows/icu_ci.yml
vendored
|
@ -399,9 +399,44 @@ jobs:
|
|||
- uses: actions/checkout@v2
|
||||
- run: python3 tools/scripts/uconfig_vars_test.py -u
|
||||
|
||||
# Run header tests with UCONFIG_NO_XXX variations.
|
||||
# Run header tests with UCONFIG_NO_XXX variations.
|
||||
uconfig_variation-check-all-header-tests:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- run: python3 tools/scripts/uconfig_vars_test.py -p
|
||||
|
||||
# Build Unicode update tools
|
||||
unicode-update-tools:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: bazelbuild/setup-bazelisk@v1
|
||||
- name: Mount bazel cache
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: "~/.cache/bazel"
|
||||
key: bazel
|
||||
|
||||
- name: Generate the data
|
||||
run: |
|
||||
export ICU_SRC=`pwd`;
|
||||
icu4c/source/data/unidata/generate.sh;
|
||||
if $?
|
||||
then
|
||||
echo
|
||||
echo Build of Unicode update tools failed.
|
||||
echo See
|
||||
echo https://unicode-org.github.io/icu/processes/unicode-update#bazel-build-process
|
||||
echo for how to reproduce and debug the failure
|
||||
exit 1
|
||||
fi
|
||||
|
||||
git diff --exit-code;
|
||||
if $?
|
||||
then
|
||||
echo
|
||||
echo ICU unicode data has changed!
|
||||
echo Did you forget to include the changed data files in this PR?
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue