Skip to content

🤖 Android Builds #85

🤖 Android Builds

🤖 Android Builds #85

Workflow file for this run

name: 🤖 Android Builds
on: [ workflow_call, workflow_dispatch ]
jobs:
build:
name: 🤖 Android ${{ matrix.arch }} ${{ matrix.target }}
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
platform: [android]
target: [debug, release]
arch: [arm64, arm32]
steps:
- name: Checkout Terrain3D
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Android Dependencies
uses: nttld/setup-ndk@v1
with:
ndk-version: r23c
link-to-sdk: true
- name: Setup Base Dependencies
uses: ./.github/actions/base-deps
- name: Setup Build Cache
uses: ./.github/actions/build-cache
with:
cache-name: ${{ matrix.platform }}-${{ matrix.arch }}-${{ matrix.target }}
continue-on-error: true
- name: Build Terrain3D
env:
SCONS_CACHE: "${{ github.workspace }}/.scons-cache/"
TARGET: 'template_${{ matrix.target }}'
ARCH: '${{ matrix.arch }}'
shell: sh
run: |
scons target=$TARGET platform='${{ matrix.platform }}' arch=$ARCH debug_symbols=no -j2
- name: Include Files
shell: sh
run: |
ls -l project/addons/terrain_3d/bin/
cp '${{ github.workspace }}/README.md' '${{ github.workspace }}/LICENSE.txt' ${{ github.workspace }}/project/addons/terrain_3d/
- name: Upload Package
uses: actions/upload-artifact@v3
with:
name: ${{ github.event.repository.name }}
path: |
${{ github.workspace }}/project/