android_builds.yml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. name: 🤖 Android Builds
  2. on:
  3. workflow_call:
  4. # Global Settings
  5. env:
  6. # Used for the cache key. Add version suffix to force clean build.
  7. GODOT_BASE_BRANCH: '4.1'
  8. SCONSFLAGS: verbose=yes warnings=extra werror=yes debug_symbols=no module_text_server_fb_enabled=yes
  9. concurrency:
  10. group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-android
  11. cancel-in-progress: true
  12. jobs:
  13. android-template:
  14. runs-on: "ubuntu-20.04"
  15. name: Template (target=template_release)
  16. steps:
  17. - uses: actions/checkout@v4
  18. - name: Set up Java 11
  19. uses: actions/setup-java@v4
  20. with:
  21. distribution: temurin
  22. java-version: 11
  23. - name: Setup Godot build cache
  24. uses: ./.github/actions/godot-cache
  25. continue-on-error: true
  26. - name: Setup python and scons
  27. uses: ./.github/actions/godot-deps
  28. - name: Compilation (arm32)
  29. uses: ./.github/actions/godot-build
  30. with:
  31. sconsflags: ${{ env.SCONSFLAGS }} arch=arm32
  32. platform: android
  33. target: template_release
  34. tests: false
  35. - name: Compilation (arm64)
  36. uses: ./.github/actions/godot-build
  37. with:
  38. sconsflags: ${{ env.SCONSFLAGS }} arch=arm64
  39. platform: android
  40. target: template_release
  41. tests: false
  42. - name: Generate Godot templates
  43. run: |
  44. cd platform/android/java
  45. ./gradlew generateGodotTemplates
  46. cd ../../..
  47. ls -l bin/
  48. - name: Upload artifact
  49. uses: ./.github/actions/upload-artifact