Skip to content

Commit 5772769

Browse files
author
Dersim Davaod
committed
Fix minor issues with S3 paths and cp command.
1 parent b155e78 commit 5772769

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

scripts/ci/remote-build-artifacts.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ source ${dir}/../utils/errors.sh
1515
#IOS_PLATFORM_TYPE="iphoneos"
1616
#IOS_BUILD_DIR="build"
1717

18-
buildConfig="${IOS_BUILD_TYPE}-${IOS_PLATFORM_TYPE}"
18+
# We have only release builds on AWS
19+
buildConfig="Release-${IOS_PLATFORM_TYPE}"
1920
s3BasePath="${AWS_S3_BUILD_ARTIFACTS_BASE_PATH}"
2021

2122
# "Directories" on AWS S3 to store uploaded build products
@@ -144,11 +145,12 @@ function pullNativeBuildProducts() {
144145

145146
local -r buildArtifactsToPull=("MapboxVisionNative" "MapboxVisionARNative" "MapboxVisionSafetyNative")
146147

147-
for framework in "${buildArtifactsToPull[@]}"; do
148-
pullFramework "${framework}"
148+
for buildArtifact in "${buildArtifactsToPull[@]}"; do
149+
pullFramework "${buildArtifact}"
149150

150151
# copy pulled frameworks into Carthage/Build/iOS dir to allow building
151-
cp -a "Carthage/Build/iOS/${IOS_BUILD_TYPE}-${IOS_PLATFORM_TYPE}/${framework}.framework" "Carthage/Build/iOS"
152+
echo "Copying ${buildArtifact} into Carthage/Build/iOS dir"
153+
cp -a "Carthage/Build/iOS/${IOS_BUILD_TYPE}-${IOS_PLATFORM_TYPE}/${buildArtifact}.framework" "Carthage/Build/iOS"
152154
done
153155

154156
echo

0 commit comments

Comments
 (0)