Files

62 lines
2.0 KiB
YAML

name: Build Android Runtime
on:
workflow_dispatch:
inputs:
build-type:
description: Build Configuration
default: Debug
type: choice
options:
- Debug
- Release
workflow_call:
inputs:
build-type:
default: Debug
type: string
concurrency:
group: build-android-${{ github.event.pull_request.number || github.sha }}-${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }}
cancel-in-progress: true
jobs:
#
# Build Stride Runtime for Android
#
Android-Runtime:
name: Android Runtime (${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }})
runs-on: windows-2025-vs2026
steps:
# Bootstrap .github so the local composite action below is resolvable pre-checkout.
- uses: actions/checkout@v7
with:
sparse-checkout: .github
- uses: ./.github/actions/stride-checkout
with:
ref: ${{ github.ref }}
exclude: samples
- name: Install Android Workload
uses: ./.github/actions/stride-workload
with:
workloads: android
- name: Setup Android
# NDK: not installed/pinned — the runner image preinstalls NDKs and each project's
# Android workload targets resolve _AndroidNdkDirectory locally (Stride.Build.Sdk
# strips it from ProjectReference dispatches so the value never fragments build
# cache keys; Stride.Native.targets enforces a minimum version at compile time).
uses: android-actions/setup-android@v4
with:
cmdline-tools-version: 12266719
accept-android-sdk-licenses: true
log-accepted-android-sdk-licenses: true
packages: platform-tools
- name: Build
run: |
dotnet build build\Stride.Android.slnf `
-nr:false `
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} `
-p:StridePlatforms=Android `
-p:StrideSkipUnitTests=true `
-p:StrideSkipAutoPack=true