tools for exporting godot projects via Github Actions
Diffstat (limited to '.github/actions/export-android/action.yml')
-rw-r--r--.github/actions/export-android/action.yml18
1 files changed, 15 insertions, 3 deletions
diff --git a/.github/actions/export-android/action.yml b/.github/actions/export-android/action.yml
index 40b7276..2b8c8c1 100644
--- a/.github/actions/export-android/action.yml
+++ b/.github/actions/export-android/action.yml
@@ -13,13 +13,25 @@ inputs:
runs:
using: composite
steps:
- - name: Setup
+ - name: Setup godot
uses: bend-n/godot-actions/.github/actions/setup-godot@main
+ - name: Setup android sdk
+ run: |
+ sudo apt-get update && sudo apt-get install -y adb openjdk-11-jdk-headless ca-certificates python python-openssl
+ export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
+ export ANDROID_HOME="/usr/lib/android-sdk"
+ wget -nv https://dl.google.com/android/repository/commandlinetools-linux-7583922_latest.zip -O tools.zip
+ sudo mkdir -pv "$ANDROID_HOME"
+ sudo unzip tools.zip -d "$ANDROID_HOME/cmdline-tools" && rm tools.zip
+ PATH="${ANDROID_HOME}/cmdline-tools/cmdline-tools/bin:${PATH}"
+ yes | sdkmanager --licenses >/dev/null
+ sudo sdkmanager "platform-tools" "build-tools;30.0.3" "platforms;android-29" "cmdline-tools;latest" "cmake;3.10.2.4988404" "ndk;21.4.7075529"
+
+ shell: bash
+
- name: Setup editor settings
- # the Dockerfile is supposed to do this for me *grumbles*
run: |
- apt-get update && apt-get install -y curl
mkdir -vp ~/.config/godot
curl 'https://raw.githubusercontent.com/bend-n/godot-actions/main/.github/editor-settings.tres' --output ~/.config/godot/editor_settings-3.tres