CI / build (push) Failing after 1m20s
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
45 lines
1.3 KiB
YAML
45 lines
1.3 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: rocky-10
|
|
steps:
|
|
- name: Check out source
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up JDK
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: temurin
|
|
java-version: '17'
|
|
|
|
- name: Set up Android SDK
|
|
uses: android-actions/setup-android@v3
|
|
|
|
- name: Cache Gradle
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: ~/.gradle/caches
|
|
key: gradle-${{ hashFiles('**/*.gradle.kts', 'gradle/wrapper/gradle-wrapper.properties') }}
|
|
restore-keys: gradle-
|
|
|
|
- name: Build debug APK
|
|
run: ./gradlew assembleDebug --no-daemon
|
|
|
|
# Hard constraint from android-client-spec.md §7: nothing Google-
|
|
# dependent, including transitive pulls. Cheap to assert here, and far
|
|
# easier than noticing a library dragged it in three months from now.
|
|
- name: Assert no Play Services or Firebase
|
|
run: |
|
|
if ./gradlew :app:dependencies --configuration releaseRuntimeClasspath --no-daemon \
|
|
| grep -iE 'play-services|firebase|com\.google\.android\.gms'; then
|
|
echo "::error::Play Services/Firebase found in the dependency tree"
|
|
exit 1
|
|
fi
|
|
echo "Dependency tree is clean."
|