Skip to content

Commit 3eb40a9

Browse files
jeromelabanebariche
authored andcommitted
ci: Adjust package generation
1 parent 04ad74f commit 3eb40a9

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/main.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,18 @@ jobs:
220220
221221
mkdir -p ./nuget/uno.icu-wasm/buildTransitive/native/unoicu.a
222222
pushd merged-artifacts
223+
shopt -s nullglob
223224
for dir in unoicu-*; do
224-
cp -R "$dir"/unoicu.a/* ../nuget/uno.icu-wasm/buildTransitive/native/unoicu.a/
225+
SRC_BASE="$dir/unoicu.a"
226+
if [ ! -d "$SRC_BASE" ]; then
227+
SRC_BASE="$dir"
228+
fi
229+
230+
find "$SRC_BASE" -mindepth 1 -maxdepth 1 -type d ! -name '*nosimd*' -print0 | while IFS= read -r -d '' version_dir; do
231+
cp -R "$version_dir" ../nuget/uno.icu-wasm/buildTransitive/native/unoicu.a/
232+
done
225233
done
234+
find ../nuget/uno.icu-wasm/buildTransitive/native/unoicu.a -type d -name '*nosimd*' -exec rm -rf {} +
226235
popd
227236
228237
- name: List files

0 commit comments

Comments
 (0)