Skip to content

Commit 41c4d94

Browse files
committed
[Android/windows]update ci config.
1 parent f4d278e commit 41c4d94

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

.github/ci/build/build_android.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ wget https://dl.google.com/android/repository/commandlinetools-linux-8512546_lat
8787
unzip commandlinetools-linux-8512546_latest.zip
8888
export PATH=$(pwd)/cmdline-tools/bin:$PATH
8989
yes | sdkmanager --licenses --sdk_root=${ANDROID_HOME}
90-
yes | sdkmanager "platform-tools" "platforms;android-31" --sdk_root=${ANDROID_HOME}
90+
yes | sdkmanager "platform-tools" "cmake;3.10.2.4988404" "platforms;android-32" "build-tools;32.0.0" --sdk_root=${ANDROID_HOME}
9191
cd -
9292

9393
# compile apk

.github/ci/build/build_windows.bat

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ echo off
7070
REM curl --silent %sdk_url% ./
7171
python %WORKSPACE%\\artifactory_utils.py --action=download_file --file=%sdk_url%
7272
7z x ./%zip_name% -y
73+
del /F ./%zip_name%
7374
echo on
7475

7576
dir
@@ -86,3 +87,10 @@ xcopy /Y /E windows\README.md Agora_Native_SDK_for_Windows_FULL\samples\API-exam
8687
xcopy /Y /E windows\README.zh.md Agora_Native_SDK_for_Windows_FULL\samples\API-example
8788
7z a -tzip result.zip -r Agora_Native_SDK_for_Windows_FULL
8889
copy result.zip %WORKSPACE%\\withAPIExample_%zip_name%
90+
del /F result.zip
91+
92+
cd Agora_Native_SDK_for_Windows_FULL\samples\API-example
93+
./installThirdParty.bat
94+
"%vs2019_install%\MSBuild\Current\Bin\MSBuild.exe" "APIExample.sln" /p:platform="Win32" /p:configuration="Release"
95+
7z a -tzip result.zip -r Release
96+
copy result.zip %WORKSPACE%\\APIExample-windows.zip

0 commit comments

Comments
 (0)