Skip to content

Commit

Permalink
Merge pull request #93553 from m4gr3d/update_github_android_build_config
Browse files Browse the repository at this point in the history
CI: Add editor target to Android builds config
  • Loading branch information
akien-mga committed Jun 27, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 35016d2 + 8026706 commit 48973aa
Showing 1 changed file with 40 additions and 14 deletions.
54 changes: 40 additions & 14 deletions .github/workflows/android_builds.yml
Original file line number Diff line number Diff line change
@@ -13,9 +13,30 @@ concurrency:
cancel-in-progress: true

jobs:
android-template:
build-android:
runs-on: "ubuntu-20.04"
name: Template (target=template_release)
name: ${{ matrix.name }}
strategy:
fail-fast: false
matrix:
include:
- name: Editor (target=editor)
cache-name: android-editor
target: editor
tests: false
sconsflags: arch=arm64 production=yes

- name: Template arm32 (target=template_release, arch=arm32)
cache-name: android-template-arm32
target: template_release
tests: false
sconsflags: arch=arm32

- name: Template arm64 (target=template_release, arch=arm64)
cache-name: android-template-arm64
target: template_release
tests: false
sconsflags: arch=arm64

steps:
- uses: actions/checkout@v4
@@ -30,33 +51,38 @@ jobs:

- name: Setup Godot build cache
uses: ./.github/actions/godot-cache
with:
cache-name: ${{ matrix.cache-name }}
continue-on-error: true

- name: Setup Python and SCons
uses: ./.github/actions/godot-deps

- name: Compilation (arm32)
uses: ./.github/actions/godot-build
with:
sconsflags: ${{ env.SCONSFLAGS }} arch=arm32
platform: android
target: template_release
tests: false

- name: Compilation (arm64)
- name: Compilation
uses: ./.github/actions/godot-build
with:
sconsflags: ${{ env.SCONSFLAGS }} arch=arm64
sconsflags: ${{ env.SCONSFLAGS }} ${{ matrix.sconsflags }}
platform: android
target: template_release
tests: false
target: ${{ matrix.target }}
tests: ${{ matrix.tests }}

- name: Generate Godot templates
if: matrix.target == 'template_release'
run: |
cd platform/android/java
./gradlew generateGodotTemplates
cd ../../..
ls -l bin/
- name: Generate Godot editor
if: matrix.target == 'editor'
run: |
cd platform/android/java
./gradlew generateGodotEditor
cd ../../..
ls -l bin/android_editor_builds/
- name: Upload artifact
uses: ./.github/actions/upload-artifact
with:
name: ${{ matrix.cache-name }}

0 comments on commit 48973aa

Please sign in to comment.