Skip to content

Commit

Permalink
CI: Android build fix attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
akien-mga committed Nov 7, 2024
1 parent 0cece57 commit b6df338
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/android_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,19 @@ jobs:
sudo apt-get update
- name: Set up Java 8
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 8
run:
# Not using actions/setup-java as it doesn't seem to work well with the Android NDK stuff.
# The version already present in Ubuntu should be fine.
sudo apt-get install openjdk-11-jdk
sudo update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java

- name: Setup Android SDK and NDK
uses: android-actions/setup-android@v3
with:
# Using an old version to be compatible with Java 11.
# Using an old version to be compatible with older Java.
cmdline-tools-version: 8512546
packages: tools platform-tools ndk;${{env.ANDROID_NDK_VERSION}}
# https://github.com/godotengine/build-containers/blob/3.2/Dockerfile.android
packages: build-tools;28.0.3 platforms;android-28 cmake;3.10.2.4988404 ndk;${{env.ANDROID_NDK_VERSION}}

# Use python 3.x release (works cross platform)
- name: Set up Python 3.x
Expand Down

0 comments on commit b6df338

Please sign in to comment.