Skip to content

Commit 2e102b6

Browse files
author
qinhui
committed
macOS ci fix
1 parent 71e4940 commit 2e102b6

File tree

1 file changed

+19
-20
lines changed

1 file changed

+19
-20
lines changed

.github/ci/build/build_mac.sh

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -99,31 +99,30 @@ fi
9999
python3 ./.github/ci/build/modify_podfile.py ./$unzip_name/samples/APIExample/Podfile $sdk_url_flag
100100

101101
echo "start compress"
102-
7za a -tzip result.zip -r $unzip_name
103-
cp result.zip $WORKSPACE/withAPIExample_${BUILD_NUMBER}_$zip_name
102+
7za a -tzip result.zip -r $unzip_name > log.txt
103+
echo "start move to"
104+
echo $WORKSPACE/with${BUILD_NUMBER}_$zip_name
105+
mv result.zip $WORKSPACE/with_${BUILD_NUMBER}_$zip_name
104106

105107
if [ $compress_apiexample = true ]; then
106-
sdk_version=$(grep "pod 'AgoraRtcEngine_iOS'" ./iOS/${ios_direction}/Podfile | sed -n "s/.*'\([0-9.]*\)'.*/\1/p")
108+
sdk_version=$(grep "pod 'AgoraRtcEngine_macOS'" ./macOS/Podfile | sed -n "s/.*'\([0-9.]*\)'.*/\1/p")
107109
echo "sdk_version: $sdk_version"
108110

109-
mkdir -p $cn_dir $global_dir
110-
cp -rf ./iOS/${ios_direction} $cn_dir/
111-
cp -rf ./iOS/${ios_direction} $global_dir/
112-
cd $cn_dir/${ios_direction}
113-
./cloud_project.sh || exit 1
114-
cd -
111+
cp -rf ./macOS $global_dir/
112+
115113
echo "start compress api example"
116-
7za a -tzip cn_result.zip $cn_dir > log.txt
117-
7za a -tzip global_result.zip $global_dir > log.txt
118-
119-
mv cn_result.zip $WORKSPACE/${apiexample_cn_name}_${sdk_version}_${BUILD_NUMBER}_APIExample.zip
120-
mv global_result.zip $WORKSPACE/${apiexample_global_name}_${sdk_version}${BUILD_NUMBER}_APIExample.zip
121-
fi
114+
7za a -tzip global_result.zip $global_dir
115+
echo "complete compress api example"
116+
echo "current path: `pwd`"
117+
ls -al
118+
global_des_path=$WORKSPACE/${apiexample_global_name}_${sdk_version}_${BUILD_NUMBER}_APIExample.zip
119+
120+
echo "global_des_path: $global_des_path"
121+
echo "Moving global_result.zip to $global_des_path"
122+
mv global_result.zip $global_des_path
123+
124+
ls -al $WORKSPACE/
125+
fi
122126

123-
#if [ $compile_project = true ]; then
124-
# cd ./$unzip_name/samples/APIExample
125-
# ./cloud_build.sh || exit 1
126-
# cd -
127-
#fi
128127

129128

0 commit comments

Comments
 (0)