Skip to content

Commit bd443f6

Browse files
committed
chore: fix the relative path issue ios github workflow
1 parent 33b28f8 commit bd443f6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/test-swift-modelgen.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@ function buildModels() {
1919

2020
cd ${tempDirectory}/models
2121
for model in */; do
22+
cd ${tempDirectory}/models/$model
2223
echo "Building model $model"
23-
buildAndRunModel $model $pathToSwiftPackage
24+
buildAndRunModel $pathToSwiftPackage
2425
done
2526
}
2627

2728
function buildAndRunModel() {
28-
modelName=$1
29-
pathToSwiftPackage=$2
29+
pathToSwiftPackage=$1
3030

3131
# copy with replace all model files to the swift package
3232
mkdir -p $pathToSwiftPackage/Sources/models
3333
rm -rf $pathToSwiftPackage/Sources/models/*
34-
cp -r $modelName/* $pathToSwiftPackage/Sources/models
34+
cp -r ./* $pathToSwiftPackage/Sources/models
3535
ls $pathToSwiftPackage/Sources/models
3636

3737
# build and run the model

0 commit comments

Comments
 (0)