Skip to content

Commit

Permalink
fix Android NDK version
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanfranke committed Nov 21, 2023
1 parent 31fde21 commit 5242564
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,27 +52,35 @@ jobs:
sudo update-alternatives --set x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-posix
sudo update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix
- name: (Android) Set up JDK 17
- name: (Android) Install JDK 17
if: ${{ startsWith(matrix.identifier, 'android-') }}
uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin

- name: (Android) Set up Android SDK
- name: (Android) Install Android SDK
if: ${{ startsWith(matrix.identifier, 'android-') }}
uses: android-actions/setup-android@v3

- name: (Android) Install Android Tools
if: ${{ startsWith(matrix.identifier, 'android-') }}
shell: sh
run: |
"$ANDROID_SDK_ROOT"/cmdline-tools/latest/bin/sdkmanager --sdk_root="$ANDROID_SDK_ROOT" "platform-tools" "build-tools;30.0.3" "platforms;android-29" "cmdline-tools;latest" "cmake;3.10.2.4988404" "ndk;21.4.7075529"
# From Godot docs, might not be necessary.
#- name: (Android) Install Android Tools
# if: ${{ startsWith(matrix.identifier, 'android-') }}
# shell: sh
# run: |
# "$ANDROID_SDK_ROOT"/cmdline-tools/latest/bin/sdkmanager --sdk_root="$ANDROID_SDK_ROOT" "platform-tools" "build-tools;30.0.3" "platforms;android-29" "cmdline-tools;latest" "cmake;3.10.2.4988404"

- name: (Android) Install NDK r23c
if: ${{ matrix.platform == 'android' }}
uses: nttld/setup-ndk@v1
with:
ndk-version: r23c
link-to-sdk: true

- name: Set up Python
- name: Install Python
uses: actions/setup-python@v2

- name: Set up SCons
- name: Install SCons
shell: bash
run: |
python -c "import sys; print(sys.version)"
Expand Down

0 comments on commit 5242564

Please sign in to comment.