Attempting to remove android folder #41
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Android Build Check | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| jobs: | |
| android-build-check: | |
| runs-on: ubuntu-latest | |
| env: | |
| GRADLE_OPTS: > | |
| -Xmx4g | |
| -XX:MaxMetaspaceSize=512m | |
| -XX:+HeapDumpOnOutOfMemoryError | |
| -Dorg.gradle.daemon=false | |
| -Dorg.gradle.parallel=false | |
| -Dorg.gradle.caching=false | |
| steps: | |
| - name: Checkout project | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: "0" | |
| - name: Free up disk space | |
| run: | | |
| sudo rm -rf /usr/share/dotnet | |
| sudo rm -rf /opt/ghc | |
| sudo rm -rf /opt/hostedtoolcache/CodeQL | |
| sudo docker image prune --all --force | |
| df -h | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: 'yarn' | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '17' | |
| - name: Install node_modules | |
| run: yarn install --frozen-lockfile | |
| - name: Generate Android project (Expo Prebuild) | |
| run: npx expo prebuild --platform android --clean | |
| - name: Setup Gradle (Read-only cache) | |
| uses: gradle/gradle-build-action@v3 | |
| with: | |
| cache-read-only: true | |
| - name: Make gradlew executable | |
| run: chmod +x android/gradlew | |
| - name: Clean Android build | |
| run: | | |
| cd android | |
| ./gradlew clean --no-daemon | |
| - name: Compile Android (Debug Build) | |
| run: | | |
| cd android | |
| ./gradlew assembleDebug \ | |
| --no-daemon \ | |
| --no-build-cache \ | |
| --max-workers=2 \ | |
| -Dorg.gradle.jvmargs="-Xmx4g -XX:MaxMetaspaceSize=512m" | |
| - name: Check disk space after build | |
| if: always() | |
| run: df -h | |
| - name: Upload APK (optional - for testing) | |
| if: success() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: debug-apk | |
| path: android/app/build/outputs/apk/debug/*.apk | |
| retention-days: 7 |