Files
owniverse/.gitea/workflows/android.yml
T
Kirill 43aaa6e28f
Android / android (push) Failing after 29s
Reorder APK upload step in CI workflow for clarity
2026-08-19 23:02:21 +03:00

108 lines
2.3 KiB
YAML

name: Android
on:
push:
branches:
- main
jobs:
android:
runs-on: godot
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Debug project
run: |
echo "=== PWD ==="
pwd
echo "=== FILES ==="
ls -la
echo "=== project.godot ==="
find . -maxdepth 3 -name project.godot -print
echo "=== export_presets.cfg ==="
find . -maxdepth 3 -name export_presets.cfg -print
echo "=== Android directory ==="
find . -maxdepth 2 -type d -name android -print
- name: Check Android preset
run: |
echo "=== export_presets.cfg ==="
cat export_presets.cfg
echo "=== Gradle settings ==="
grep -n -E 'gradle_build|custom_template' export_presets.cfg || true
echo "=== Android directory ==="
ls -la android 2>/dev/null || true
- name: Godot version
run: |
godot --version
- name: Check export templates
run: |
ls -lh /root/.local/share/godot/export_templates/4.6.stable/
test -f /root/.local/share/godot/export_templates/4.6.stable/android_release.apk
# - name: Godot export check
# run: |
# godot \
# --headless \
# --path . \
# --export-release "Android" \
# /tmp/test.apk
- name: Godot export check
run: |
mkdir -p build
godot \
--headless \
--verbose \
--path . \
--export-release "Android" \
build/app.apk
- name: Check build
if: always()
run: |
echo "=== BUILD ==="
ls -lah build 2>/dev/null || true
# ---
- name: Build APK
run: |
mkdir -p build
godot \
--headless \
--path . \
--export-release "Android" \
build/app.apk
- name: Verify APK
run: |
test -f build/app.apk
ls -lh build/app.apk
- name: Check APK
run: |
ls -lh build/app.apk
- name: Upload APK
uses: actions/upload-artifact@v4
with:
name: android-apk
path: build/app.apk