Skip to content

Commit 589f08e

Browse files
authored
Make GenerateEmojiData work as intended on Windows, and run it in CI (#1251)
* Make replaceDifferentOrDelete work on Windows * Update the documentation * GenerateEmojiData in CI * GenerateEmojiData
1 parent 1d08ebb commit 589f08e

File tree

11 files changed

+405
-455
lines changed

11 files changed

+405
-455
lines changed

.github/workflows/cli-build-instructions.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,29 @@ jobs:
165165
exit 1
166166
}
167167
168+
- name: Run command - Generate Emoji Data
169+
run: |
170+
cd unicodetools/mine/src
171+
mvn -s .github/workflows/mvn-settings.xml compile exec:java -Dexec.mainClass="org.unicode.tools.emoji.GenerateEmojiData" -am -pl unicodetools -DCLDR_DIR=$(cd ../../../cldr/mine/src ; pwd) -DUNICODETOOLS_GEN_DIR=$(cd ../Generated ; pwd) -DUNICODETOOLS_REPO_DIR=$(pwd)
172+
env:
173+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
174+
175+
# Some emoji files are UCD files, so we should check that their generator
176+
# not only runs, but that it doesn’t change anything.
177+
- name: Check that Emoji files are consistent
178+
run: |
179+
cd unicodetools/mine/src
180+
git diff --compact-summary --exit-code || {
181+
git diff --compact-summary |
182+
awk '{
183+
if (previous) {
184+
print "::error file="previous",title=File must be regenerated::Run org.unicode.tools.emoji.GenerateEmojiData."
185+
}
186+
previous=$1
187+
}'
188+
exit 1
189+
}
190+
168191
# Only test once we know the UCD is internally consistent.
169192
# MakeUnicodeFiles is much faster than this anyway.
170193
- name: Run command - Build and Test

docs/pipeline.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ Indic scripts only:
5252
If the change affects emoji properties, including reserved Extended_Pictographic codepoints that should no longer be
5353
reserved:
5454
- [ ] [GenerateEmojiData](#generateemojidata)
55-
- [ ] Merge changes from the temporary files that are generated in unicodetools/data/ucd.
56-
- [ ] Delete the temporary files that aren't needed from unicodetools/data/ucd and unicodetools/data/emoji.
5755
- [ ] Commit
5856

5957
---

unicodetools/data/emoji/dev/emoji-sequences.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# emoji-sequences.txt
2-
# Date: 2025-07-25, 17:54:32 GMT
2+
# Date: 2025-12-03, 13:29:04 GMT
33
# © 2025 Unicode®, Inc.
44
# Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. in the U.S. and other countries.
55
# For terms of use and license, see https://www.unicode.org/terms_of_use.html
66
#
77
# Emoji Sequence Data for UTS #51
8-
# Version: 17.0
8+
# Version: 18.0
99
#
1010
# For documentation and usage, see https://www.unicode.org/reports/tr51
1111
#

unicodetools/data/emoji/dev/emoji-test.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# emoji-test.txt
2-
# Date: 2025-08-04, 20:55:31 GMT
2+
# Date: 2025-12-03, 13:29:04 GMT
33
# © 2025 Unicode®, Inc.
44
# Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. in the U.S. and other countries.
55
# For terms of use and license, see https://www.unicode.org/terms_of_use.html
66
#
77
# Emoji Keyboard/Display Test Data for UTS #51
8-
# Version: 17.0
8+
# Version: 18.0
99
#
1010
# For documentation and usage, see https://www.unicode.org/reports/tr51
1111
#

unicodetools/data/emoji/dev/emoji-zwj-sequences.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# emoji-zwj-sequences.txt
2-
# Date: 2025-01-08, 04:57:12 GMT
2+
# Date: 2025-12-03, 13:29:04 GMT
33
# © 2025 Unicode®, Inc.
44
# Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. in the U.S. and other countries.
55
# For terms of use and license, see https://www.unicode.org/terms_of_use.html
66
#
77
# Emoji ZWJ Sequences for UTS #51
8-
# Version: 17.0
8+
# Version: 18.0
99
#
1010
# For documentation and usage, see https://www.unicode.org/reports/tr51
1111
#

unicodetools/data/emoji/dev/internal/emoji-internal.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# emoji-internal.txt
2-
# Date: 2025-01-08, 04:54:45 GMT
2+
# Date: 2025-12-03, 13:29:03 GMT
33
# © 2025 Unicode®, Inc.
44
# Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. in the U.S. and other countries.
55
# For terms of use and license, see https://www.unicode.org/terms_of_use.html
66
#
77
# Emoji Data Internal for UTS #51
8-
# Version: 17.0
8+
# Version: 18.0
99
#
1010
# For documentation and usage, see https://www.unicode.org/reports/tr51
1111
#

unicodetools/data/emoji/dev/internal/emoji-proposals.txt

Lines changed: 366 additions & 438 deletions
Large diffs are not rendered by default.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# emoji-sequences-nonrgi.txt
2-
# Date: 2025-01-08, 04:54:47 GMT
2+
# Date: 2025-12-03, 13:29:04 GMT
33
# © 2025 Unicode®, Inc.
44
# Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. in the U.S. and other countries.
55
# For terms of use and license, see https://www.unicode.org/terms_of_use.html
66
#
77
# Emoji Sequence Data — Non-RGI for UTS #51
8-
# Version: 17.0
8+
# Version: 18.0
99
#
1010
# For documentation and usage, see https://www.unicode.org/reports/tr51
1111
#

unicodetools/data/emoji/dev/internal/emoji-zwj-sequences-nonrgi.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# emoji-zwj-sequences-nonrgi.txt
2-
# Date: 2025-01-08, 04:54:47 GMT
2+
# Date: 2025-12-03, 13:29:04 GMT
33
# © 2025 Unicode®, Inc.
44
# Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. in the U.S. and other countries.
55
# For terms of use and license, see https://www.unicode.org/terms_of_use.html
66
#
77
# Emoji ZWJ Sequences — Non-RGI for UTS #51
8-
# Version: 17.0
8+
# Version: 18.0
99
#
1010
# For documentation and usage, see https://www.unicode.org/reports/tr51
1111
#

unicodetools/data/ucd/dev/emoji/emoji-variation-sequences.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# emoji-variation-sequences.txt
2-
# Date: 2025-01-30, 21:48:29 GMT
2+
# Date: 2025-12-03, 13:29:04 GMT
33
# © 2025 Unicode®, Inc.
44
# Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. in the U.S. and other countries.
55
# For terms of use and license, see https://www.unicode.org/terms_of_use.html
66
#
77
# Emoji Variation Sequences for UTS #51
8-
# Version: 17.0
8+
# Version: 18.0.0
99
#
1010
# For documentation and usage, see https://www.unicode.org/reports/tr51
1111
#

0 commit comments

Comments
 (0)