Skip to content

Commit

Permalink
Explicit install of required andoid sdk versions in build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
seinsinnes committed Jan 15, 2025
1 parent 92a62db commit ac34023
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,24 @@ jobs:
run: Rename-Item "C:/Program Files/2018.4.20f1" Unity

#Remove all pre-installed android sdk build tool versions except 28.0.3
#Get-ChildItem -Path "C:/Android/android-sdk/build-tools" -Exclude 28.0.3,29.0.2 | Remove-Item -Recurse -Force
- name: Remove unwanted android sdk build tool versions
run: Get-ChildItem -Path "C:/Android/android-sdk/build-tools" -Exclude 28.0.3,29.0.2 | Remove-Item -Recurse -Force
run: |
Move-Item -Path C:/Android/android-sdk/build-tools/* -Destination c:/windows/temp
Get-ChildItem -Path "C:/Android/android-sdk/build-tools"
#Remove all pre-installed android sdk platform versions except 29
#Get-ChildItem -Path "C:/Android/android-sdk/platforms" -Exclude android-29 | Remove-Item -Recurse -Force
- name: Remove unwanted android sdk platform versions
run: Get-ChildItem -Path "C:/Android/android-sdk/platforms" -Exclude android-29 | Remove-Item -Recurse -Force
run: |
Move-Item -Path C:/Android/android-sdk/platforms/* -Destination c:/windows/temp
Get-ChildItem -Path "C:/Android/android-sdk/platforms"
#Download and extract android sdk platform and build tools
- name: Install android sdk platform and build tools
run: |
C:/Android/android-sdk/cmdline-tools/latest/bin/sdkmanager.bat "platforms;android-29"
C:/Android/android-sdk/cmdline-tools/latest/bin/sdkmanager.bat "build-tools;28.0.3" "build-tools;29.0.2" "cmdline-tools;latest" "tools"
#Run build script
- name: Run build batch script
Expand Down

0 comments on commit ac34023

Please # to comment.