Skip to content

Commit 9eb8295

Browse files
committed
1 parent f57b0a8 commit 9eb8295

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/rundemo.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,31 +43,31 @@ jobs:
4343
path: swift-foundation-icu
4444
- name: "Test swift-foundation-icu-demo"
4545
working-directory: swift-foundation-icu-demo
46-
run: swift test
46+
run: LC_ALL=en_US_POSIX swift test
4747
- name: "Apply swift-foundation-icu PR #53"
4848
working-directory: swift-foundation-icu
4949
run: gh pr checkout 53
5050
env:
5151
GH_TOKEN: ${{ github.token }}
52-
- name: "Patch swift-foundation-icu to use data file on Linux"
52+
- name: "Patch swift-foundation-icu to use ICU data file"
5353
working-directory: swift-foundation-icu
54-
run: perl -pi -e 's/"USE_PACKAGE_DATA"/"DISABLED_USE_PACKAGE_DATA"/g' Package.swift
55-
- name: "Test swift-foundation-icu-demo with data file"
54+
run: perl -pi -e 's/"USE_PACKAGE_DATA"/"DISABLED_USE_PACKAGE_DATA"/g' Package.swift && cat Package.swift
55+
- name: "Test swift-foundation-icu-demo with ICU data file"
5656
working-directory: swift-foundation-icu-demo
57-
run: ICU_DATA_DIR_PREFIX=${{ github.workspace }}/swift-foundation-icu-demo/LOCALE_DATA swift test
57+
run: ICU_DATA_DIR_PREFIX=${{ github.workspace }}/swift-foundation-icu-demo/LOCALE_DATA LC_ALL=en_US_POSIX swift test
5858
- name: "Verify that ICU data file is being used"
5959
working-directory: swift-foundation-icu-demo
6060
run: |
6161
mv LOCALE_DATA/usr/share/icu/icudt76l.dat LOCALE_DATA/usr/share/icu/icudt76l.dat.old
6262
echo '' > LOCALE_DATA/usr/share/icu/icudt76l.dat
6363
# should fail after we clobber the data file
64-
ICU_DATA_DIR_PREFIX=${{ github.workspace }}/swift-foundation-icu-demo/LOCALE_DATA swift test || true
64+
ICU_DATA_DIR_PREFIX=${{ github.workspace }}/swift-foundation-icu-demo/LOCALE_DATA LC_ALL=en_US_POSIX swift test || true
6565
# move the data file back
6666
mv LOCALE_DATA/usr/share/icu/icudt76l.dat.old LOCALE_DATA/usr/share/icu/icudt76l.dat
6767
- name: "Build Foundation"
6868
working-directory: swift-foundation
6969
run: SWIFTCI_USE_LOCAL_DEPS=.. swift build
7070
- name: "Run Foundation InternationalizationBenchmarks"
7171
working-directory: swift-foundation/Benchmarks
72-
run: SWIFTCI_USE_LOCAL_DEPS=.. swift run InternationalizationBenchmarks
72+
run: SWIFTCI_USE_LOCAL_DEPS=.. LC_ALL=en_US_POSIX swift run InternationalizationBenchmarks
7373

0 commit comments

Comments
 (0)