summaryrefslogtreecommitdiff
path: root/.github/workflows/android_builds.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/android_builds.yml')
-rw-r--r--.github/workflows/android_builds.yml29
1 files changed, 14 insertions, 15 deletions
diff --git a/.github/workflows/android_builds.yml b/.github/workflows/android_builds.yml
index 3c1e6a6b72..b24a36beef 100644
--- a/.github/workflows/android_builds.yml
+++ b/.github/workflows/android_builds.yml
@@ -4,8 +4,9 @@ on: [push, pull_request]
# Global Settings
env:
GODOT_BASE_BRANCH: master
- SCONSFLAGS: platform=android verbose=yes warnings=all werror=yes --jobs=2
+ SCONSFLAGS: platform=android verbose=yes warnings=extra werror=yes debug_symbols=no --jobs=2 module_text_server_fb_enabled=yes
SCONS_CACHE_LIMIT: 4096
+ ANDROID_NDK_VERSION: 21.1.6352462
jobs:
android-template:
@@ -23,20 +24,14 @@ jobs:
sudo cp -f misc/ci/sources.list /etc/apt/sources.list
sudo apt-get update
- # Install all packages (except scons)
- - name: Configure dependencies
- run: |
- sudo apt-get install openjdk-8-jdk
- echo 'JAVA_HOME=usr/lib/jvm/java-8-openjdk-amd64' >> $GITHUB_ENV
+ - name: Set up Java 8
+ uses: actions/setup-java@v1
+ with:
+ java-version: 8
- - name: Install Android SDK and NDK
+ - name: Install Android NDK r21
run: |
- echo '/usr/lib/jvm/java-8-openjdk-amd64/jre/bin' >> $GITHUB_PATH
- java -version
- echo "ANDROID_HOME=$(pwd)/godot-dev/build-tools/android-sdk" >> $GITHUB_ENV
- echo "ANDROID_NDK_ROOT=$(pwd)/godot-dev/build-tools/android-ndk" >> $GITHUB_ENV
- misc/ci/android-tools-linux.sh
- source ~/.bashrc
+ sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install 'ndk;${{env.ANDROID_NDK_VERSION}}'
# Upload cache on completion and check it out now
- name: Load .scons_cache directory
@@ -59,7 +54,6 @@ jobs:
# Optional - x64 or x86 architecture, defaults to x64
architecture: 'x64'
- # You can test your matrix by printing the current Python version
- name: Configuring Python packages
run: |
python -c "import sys; print(sys.version)"
@@ -70,8 +64,13 @@ jobs:
- name: Compilation
env:
SCONS_CACHE: ${{github.workspace}}/.scons_cache/
+ ANDROID_NDK_ROOT: /usr/local/lib/android/sdk/ndk/${{env.ANDROID_NDK_VERSION}}/
run: |
- scons target=release tools=no
+ scons target=release tools=no android_arch=armv7
+ scons target=release tools=no android_arch=arm64v8
+ cd platform/android/java
+ ./gradlew generateGodotTemplates
+ cd ../../..
ls -l bin/
- uses: actions/upload-artifact@v2