Skip to content

Commit

Permalink
feat: modify ci for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
weileifrank committed Oct 31, 2024
1 parent 031e22f commit 62a7e04
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/ci/build/build_windows.bat
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,18 @@ echo sdk_url: %sdk_url%
echo part2: %part2%
echo zip_name: %zip_name%

dir
rmdir /S /Q Agora_Native_SDK_for_Windows_FULL\demo
del /F /Q Agora_Native_SDK_for_Windows_FULL\commits
del /F /Q Agora_Native_SDK_for_Windows_FULL\package_size_report.txt
if %compile_project% EQU false goto FINAL
curl %sdk_url% -o %zip_name%
if %errorlevel% neq 0 (
echo Failed to download the file from %sdk_url%
) else (
echo Successfully downloaded the file from %sdk_url%
dir
rmdir /S /Q Agora_Native_SDK_for_Windows_FULL\demo
del /F /Q Agora_Native_SDK_for_Windows_FULL\commits
del /F /Q Agora_Native_SDK_for_Windows_FULL\package_size_report.txt
)

mkdir Agora_Native_SDK_for_Windows_FULL\samples
mkdir Agora_Native_SDK_for_Windows_FULL\samples\API-example
rmdir /S /Q windows\cicd
Expand All @@ -97,14 +105,6 @@ del /F result.zip
del /F %WORKSPACE%\\%zip_name%

if %compile_project% EQU false goto FINAL
curl %sdk_url% -o %zip_name%
if %errorlevel% neq 0 (
echo Failed to download the file from %sdk_url%
) else (
REM python %WORKSPACE%\\artifactory_utils.py --action=download_file --file=%sdk_url%
7z x ./%zip_name% -y
cd Agora_Native_SDK_for_Windows_FULL\samples\API-example
call cloud_build.bat
)

:FINAL

0 comments on commit 62a7e04

Please sign in to comment.