godot/.github/workflows/android_builds.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

95 lines
2.6 KiB
YAML
Raw Normal View History

name: 🤖 Android Builds
on:
workflow_call:
2020-07-15 21:57:23 +00:00
# Global Settings
2020-07-15 21:57:23 +00:00
env:
# Used for the cache key. Add version suffix to force clean build.
GODOT_BASE_BRANCH: 4.3
SCONSFLAGS: verbose=yes warnings=extra werror=yes debug_symbols=no module_text_server_fb_enabled=yes
2020-07-15 21:57:23 +00:00
concurrency:
2021-08-25 13:04:05 +00:00
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-android
cancel-in-progress: true
2020-07-15 21:57:23 +00:00
jobs:
build-android:
2020-07-15 21:57:23 +00:00
runs-on: "ubuntu-20.04"
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
2020-07-15 21:57:23 +00:00
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
2020-07-15 21:57:23 +00:00
2023-10-17 18:01:36 +00:00
- name: Set up Java 17
uses: actions/setup-java@v4
with:
distribution: temurin
2023-10-17 18:01:36 +00:00
java-version: 17
2020-07-15 21:57:23 +00:00
- name: Restore Godot build cache
uses: ./.github/actions/godot-cache-restore
with:
cache-name: ${{ matrix.cache-name }}
continue-on-error: true
2020-07-15 21:57:23 +00:00
- name: Setup Python and SCons
uses: ./.github/actions/godot-deps
- name: Compilation
uses: ./.github/actions/godot-build
with:
sconsflags: ${{ env.SCONSFLAGS }} ${{ matrix.sconsflags }}
platform: android
target: ${{ matrix.target }}
tests: ${{ matrix.tests }}
- name: Save Godot build cache
uses: ./.github/actions/godot-cache-save
with:
cache-name: ${{ matrix.cache-name }}
continue-on-error: true
- name: Generate Godot templates
if: matrix.target == 'template_release'
2020-07-15 21:57:23 +00:00
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 }}