fluxa/.github/workflows/platform.yml
KhooLy 782b977e08 Check out sibling fluxa-core repo in Platform Verification CI
Data module's Gradle build now depends on buildFluxaCoreHost (added
when UniFFI codegen moved from app to data module), which needs
../fluxa-core to exist next to the checkout. platform.yml never
checked that sibling repo out, unlike apple.yml which already does
this. Mirror apple.yml's checkout + symlink steps and workflow_dispatch
input.
2026-07-20 15:54:09 +03:00

73 lines
1.8 KiB
YAML

name: Platform Verification
on:
pull_request:
paths:
- ".github/workflows/platform.yml"
- "build-logic/**"
- "core/**"
- "data/**"
- "player/**"
- "shared/**"
- "gradle/**"
- "gradle.properties"
- "settings.gradle.kts"
- "build.gradle.kts"
push:
branches: [master]
paths:
- ".github/workflows/platform.yml"
- "build-logic/**"
- "core/**"
- "data/**"
- "player/**"
- "shared/**"
- "gradle/**"
- "gradle.properties"
- "settings.gradle.kts"
- "build.gradle.kts"
workflow_dispatch:
inputs:
fluxa_core_ref:
description: Fluxa Rust core ref to build
required: false
default: master
type: string
permissions:
contents: read
jobs:
android-shared:
name: Android shared modules
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: FluxaMedia/fluxa-core
path: fluxa-core
ref: ${{ inputs.fluxa_core_ref || 'master' }}
- name: Link sibling Rust core
run: ln -sfn "$GITHUB_WORKSPACE/fluxa-core" "$(dirname "$GITHUB_WORKSPACE")/fluxa-core"
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: "17"
- uses: android-actions/setup-android@v3
- name: Compile Android shared modules
run: >-
./gradlew --no-daemon
checkSharedUiBoundary
checkKmpCommonBoundary
checkSharedPlayerBoundary
:core:compileDebugKotlinAndroid
:data:compileDebugKotlinAndroid
:player:compileDebugKotlinAndroid
:shared:compileDebugKotlinAndroid