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.yml39
1 files changed, 21 insertions, 18 deletions
diff --git a/.github/workflows/android_builds.yml b/.github/workflows/android_builds.yml
index c591b4bb39..3ce3765efc 100644
--- a/.github/workflows/android_builds.yml
+++ b/.github/workflows/android_builds.yml
@@ -1,9 +1,10 @@
-name: Android Builds
+name: 🤖 Android Builds
on: [push, pull_request]
-# Global Cache Settings
+# Global Settings
env:
GODOT_BASE_BRANCH: master
+ SCONSFLAGS: platform=android verbose=yes warnings=all werror=yes --jobs=2
SCONS_CACHE_LIMIT: 4096
jobs:
@@ -18,23 +19,14 @@ jobs:
# Azure repositories are not reliable, we need to prevent azure giving us packages.
- name: Make apt sources.list use the default Ubuntu repositories
run: |
+ sudo rm -f /etc/apt/sources.list.d/*
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 "::set-env name=JAVA_HOME::usr/lib/jvm/java-8-openjdk-amd64"
-
- - name: Install Android SDK and NDK
- run: |
- echo "::set-env name=PATH::/usr/lib/jvm/java-8-openjdk-amd64/jre/bin:${PATH}"
- java -version
- echo "::set-env name=ANDROID_HOME::$(pwd)/godot-dev/build-tools/android-sdk"
- echo "::set-env name=ANDROID_NDK_ROOT::$(pwd)/godot-dev/build-tools/android-ndk"
- misc/ci/android-tools-linux.sh
- source ~/.bashrc
+ - name: Set up Java 8
+ uses: actions/setup-java@v1
+ with:
+ java-version: 8
# Upload cache on completion and check it out now
- name: Load .scons_cache directory
@@ -57,7 +49,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)"
@@ -68,5 +59,17 @@ jobs:
- name: Compilation
env:
SCONS_CACHE: ${{github.workspace}}/.scons_cache/
+ ANDROID_NDK_ROOT: /usr/local/lib/android/sdk/ndk-bundle
run: |
- scons -j2 verbose=yes warnings=all werror=yes platform=android 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
+ with:
+ name: ${{ github.job }}
+ path: bin/*
+ retention-days: 14