Compare commits

..

2 Commits

Author SHA1 Message Date
4b0fa8aad6 Merge branch 'feature/torrent-engine-integration' into 'main'
Remove obsolete torrent Kotlin files and fix CI build

See merge request foxixus/neomovies_mobile!3
2025-10-02 15:39:16 +00:00
factory-droid[bot]
f8ba6c69d2 Optimize GitLab CI cache to fix disk space issues
- Reduce cached paths: only cache wrapper and modules-2 (not transforms)
- Remove android/.gradle/ and build/ from cache (too large)
- Add before_script cleanup of transform caches and lock files
- Add 'gradle clean' before build to ensure fresh build
- Set explicit cache policy: pull-push
- Fixes 'no space left on device' errors in GitLab runners

Cache size reduced from ~2-3GB to ~200MB
2025-10-02 15:38:19 +00:00

View File

@@ -11,20 +11,24 @@ variables:
cache: cache:
key: ${CI_COMMIT_REF_SLUG} key: ${CI_COMMIT_REF_SLUG}
paths: paths:
- .gradle/ - .gradle/wrapper
- .gradle/caches/modules-2
- .pub-cache/ - .pub-cache/
- android/.gradle/ policy: pull-push
- build/
build:torrent-engine: build:torrent-engine:
stage: build stage: build
image: mingc/android-build-box:latest image: mingc/android-build-box:latest
before_script: before_script:
- echo "sdk.dir=${ANDROID_SDK_ROOT:-/opt/android-sdk}" > android/local.properties - echo "sdk.dir=${ANDROID_SDK_ROOT:-/opt/android-sdk}" > android/local.properties
# Clean up old Gradle cache to free space
- rm -rf .gradle/caches/transforms-*
- rm -rf .gradle/caches/*/transforms
- find .gradle/caches -name "*.lock" -type f -delete || true
script: script:
- cd android - cd android
- chmod +x gradlew - chmod +x gradlew
- ./gradlew :torrentengine:assembleRelease --no-daemon --stacktrace - ./gradlew clean :torrentengine:assembleRelease --no-daemon --stacktrace
artifacts: artifacts:
paths: paths:
- android/torrentengine/build/outputs/aar/*.aar - android/torrentengine/build/outputs/aar/*.aar