Skip to content

Commit

Permalink
chore: fix the relative path issue ios github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
phani-srikar committed Jul 17, 2023
1 parent 33b28f8 commit bd443f6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/test-swift-modelgen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@ function buildModels() {

cd ${tempDirectory}/models
for model in */; do
cd ${tempDirectory}/models/$model
echo "Building model $model"
buildAndRunModel $model $pathToSwiftPackage
buildAndRunModel $pathToSwiftPackage
done
}

function buildAndRunModel() {
modelName=$1
pathToSwiftPackage=$2
pathToSwiftPackage=$1

# copy with replace all model files to the swift package
mkdir -p $pathToSwiftPackage/Sources/models
rm -rf $pathToSwiftPackage/Sources/models/*
cp -r $modelName/* $pathToSwiftPackage/Sources/models
cp -r ./* $pathToSwiftPackage/Sources/models
ls $pathToSwiftPackage/Sources/models

# build and run the model
Expand Down

0 comments on commit bd443f6

Please sign in to comment.