From: gnrunge Date: Thu, 30 Sep 2021 18:25:03 +0000 (-0700) Subject: ICU-21649 Adds build and execution of Unicode update tools to GHA CI. X-Git-Tag: cldr/2022-02-08~38 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b9311e2f547251807c3982e6cb003feec3ba5c83;p=icu 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. --- diff --git a/.github/workflows/icu_ci.yml b/.github/workflows/icu_ci.yml index e9690d934f9..622f41d2679 100644 --- a/.github/workflows/icu_ci.yml +++ b/.github/workflows/icu_ci.yml @@ -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