Skip to content

Commit ee21a2b

Browse files
committed
1 parent 2978f3f commit ee21a2b

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/rundemo.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ jobs:
1515
uses: actions/checkout@v4
1616
with:
1717
path: swift-foundation-icu-demo
18+
- name: "Checkout ICU"
19+
uses: actions/checkout@v4
20+
with:
21+
repository: apple-oss-distributions/ICU
22+
path: ICU
23+
- name: "Build ICU Data"
24+
working-directory: ICU
25+
run: make icu
1826
- name: "Checkout swift-foundation"
1927
uses: actions/checkout@v4
2028
with:
@@ -48,7 +56,6 @@ jobs:
4856
run: gh pr checkout 53
4957
env:
5058
GH_TOKEN: ${{ github.token }}
51-
- run: ls ${{ github.workspace }}/swift-foundation-icu-demo/LOCALE_DATA/usr/share/icu/icudt74l.dat
5259
- name: "Patch swift-foundation-icu to use data file on Linux"
5360
working-directory: swift-foundation-icu
5461
run: perl -pi -e 's/"USE_PACKAGE_DATA"/"DISABLED_USE_PACKAGE_DATA"/g' Package.swift
@@ -60,7 +67,7 @@ jobs:
6067
run: |
6168
mv LOCALE_DATA/usr/share/icu/icudt74l.dat LOCALE_DATA/usr/share/icu/icudt74l.dat.old
6269
echo '' > LOCALE_DATA/usr/share/icu/icudt74l.dat
63-
# should fail
70+
# should fail after we clobber the data file
6471
ICU_DATA_DIR_PREFIX=${{ github.workspace }}/swift-foundation-icu-demo/LOCALE_DATA swift test || true
6572
# move the data file back
6673
mv LOCALE_DATA/usr/share/icu/icudt74l.dat.old LOCALE_DATA/usr/share/icu/icudt74l.dat

0 commit comments

Comments
 (0)