mirror of
https://github.com/lone-cloud/prism
synced 2026-06-03 08:43:10 -07:00
41 lines
974 B
YAML
41 lines
974 B
YAML
name: Android CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main, master]
|
|
paths:
|
|
- 'android/**'
|
|
- '.github/workflows/android-ci.yml'
|
|
pull_request:
|
|
branches: [main, master]
|
|
paths:
|
|
- 'android/**'
|
|
- '.github/workflows/android-ci.yml'
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup JDK
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: '17'
|
|
|
|
- name: Verify lockfile is up-to-date
|
|
run: |
|
|
cd android
|
|
chmod +x gradlew
|
|
./gradlew dependencies --write-locks
|
|
if ! git diff --exit-code app/gradle.lockfile; then
|
|
echo "❌ Lockfile is out of date. Run: cd android && ./gradlew dependencies --write-locks"
|
|
exit 1
|
|
fi
|
|
echo "✅ Lockfile is up-to-date"
|
|
|
|
- name: Build APK
|
|
run: |
|
|
cd android
|
|
./gradlew assembleRelease
|