Skip to content

Commit

Permalink
Manually install android sdk 24 and 25
Browse files Browse the repository at this point in the history
All the sdk version prior to 30 were removed from every runner, now the sdk has to be installed manually
actions/runner-images#8952
  • Loading branch information
edo9300 committed Feb 16, 2024
1 parent 5eee311 commit 5fba6df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/windbot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ jobs:
- name: Install mono
shell: bash
run: |
choco install mono --x86
- name: Install ndk 15
choco install mono --x86 --ignore-checksums
- name: Install SDK 24, SDK 25 and NDK 15
shell: bash
env:
VS_PREFIX: "16.0_"
Expand Down Expand Up @@ -113,8 +113,8 @@ jobs:
with:
release_id: ${{ needs.create_release.outputs.output }}
assets_path: assets


# assets to upload android
# - $ARTIFACT
# - libWindbot.aar
Expand Down
5 changes: 2 additions & 3 deletions ci/install-sdk-ndk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ reg add 'HKCU\SOFTWARE\Xamarin\VisualStudio\'$INSTALLATION_ID'\Android' -v Andro
reg add 'HKCU\SOFTWARE\Xamarin\VisualStudio\'$INSTALLATION_ID'\Android' -v JavaSdkDirectory -t REG_SZ -d "$JAVA_HOME" -f

# Manually install Android SDK Platform 24, the most recent version that still works with Embeddinator 0.4.0
# cd "$ANDROID_SDK_ROOT"
# (yes || true) | tools/bin/sdkmanager.bat --sdk_root=. "platforms;android-24"
# cd -
# Manually install Android SDK Platform 25, version needed by Xamarin
(yes || true) | ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager.bat --sdk_root=$ANDROID_SDK_ROOT "build-tools;28.0.2" "platforms;android-24" "platforms;android-25"

# Manually install Android NDK r15c, the most recent version that still works with Embeddinator 0.4.0
curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://dl.google.com/android/repository/android-ndk-r15c-windows-x86_64.zip
Expand Down

0 comments on commit 5fba6df

Please sign in to comment.