Skip to content

Commit b2e99c8

Browse files
committed
1 parent 7d11865 commit b2e99c8

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/rundemo.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,15 @@ jobs:
4343
with:
4444
repository: swiftlang/swift-foundation-icu
4545
path: swift-foundation-icu
46+
- name: "Build Foundation"
47+
working-directory: swift-foundation
48+
run: SWIFTCI_USE_LOCAL_DEPS=${{ github.workspace }}/swift-foundation-icu-demo swift build
4649
- name: "Test swift-foundation-icu-demo"
4750
working-directory: swift-foundation-icu-demo
4851
run: LC_ALL=en_US_POSIX swift test
52+
- name: "Run InternationalizationBenchmarks with Packaged ICU Data"
53+
working-directory: swift-foundation/Benchmarks
54+
run: SWIFTCI_USE_LOCAL_DEPS=${{ github.workspace }}/swift-foundation-icu-demo LC_ALL=en_US_POSIX swift run InternationalizationBenchmarks
4955
- name: "Apply swift-foundation-icu PR #53"
5056
working-directory: swift-foundation-icu
5157
run: gh pr checkout 53
@@ -60,17 +66,14 @@ jobs:
6066
- name: "Verify that ICU data file is being used"
6167
working-directory: swift-foundation-icu-demo
6268
run: |
63-
mv LOCALE_DATA/usr/share/icu/icudt74l.dat LOCALE_DATA/usr/share/icu/icudt74l.dat.old
69+
mv LOCALE_DATA/usr/share/icu/icudt74l.dat LOCALE_DATA/usr/share/icu/icudt74l.dat.disabled
6470
echo '' > LOCALE_DATA/usr/share/icu/icudt74l.dat
6571
# should fail after we clobber the data file
6672
ICU_DATA_DIR_PREFIX=${{ github.workspace }}/swift-foundation-icu-demo/LOCALE_DATA LC_ALL=en_US_POSIX swift test || echo "FAILED AS EXPECTED" > /tmp/testsfailed.txt
6773
cat /tmp/testsfailed.txt
6874
# move the data file back
69-
mv LOCALE_DATA/usr/share/icu/icudt74l.dat.old LOCALE_DATA/usr/share/icu/icudt74l.dat
70-
- name: "Build Foundation"
71-
working-directory: swift-foundation
72-
run: SWIFTCI_USE_LOCAL_DEPS=/Users/runner/work/swift-foundation-icu-demo/swift-foundation-icu-demo swift build
73-
- name: "Run Foundation InternationalizationBenchmarks"
75+
mv LOCALE_DATA/usr/share/icu/icudt74l.dat.disabled LOCALE_DATA/usr/share/icu/icudt74l.dat
76+
- name: "Run InternationalizationBenchmarks with External ICU Data"
7477
working-directory: swift-foundation/Benchmarks
75-
run: SWIFTCI_USE_LOCAL_DEPS=/Users/runner/work/swift-foundation-icu-demo/swift-foundation-icu-demo LC_ALL=en_US_POSIX swift run InternationalizationBenchmarks
78+
run: ICU_DATA_DIR_PREFIX=${{ github.workspace }}/swift-foundation-icu-demo/LOCALE_DATA SWIFTCI_USE_LOCAL_DEPS=${{ github.workspace }}/swift-foundation-icu-demo LC_ALL=en_US_POSIX swift run InternationalizationBenchmarks
7679

0 commit comments

Comments
 (0)