chore: update dependencies and add debug variant configuration #1
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: Build Debug APK | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| build-debug: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Setup JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: "17" | |
| distribution: temurin | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Prebuild Android (Debug variant) | |
| env: | |
| APP_VARIANT: debug | |
| run: npx expo prebuild --platform android --no-install --non-interactive | |
| - name: Cache Gradle dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.gradle/caches | |
| ~/.gradle/wrapper | |
| key: ${{ runner.os }}-gradle-debug-${{ hashFiles('android/**/*.gradle*', 'android/**/gradle-wrapper.properties') }} | |
| restore-keys: | | |
| ${{ runner.os }}-gradle-debug- | |
| ${{ runner.os }}-gradle- | |
| - name: Make Gradle executable | |
| run: chmod +x ./gradlew | |
| working-directory: android | |
| - name: Build Debug APK | |
| env: | |
| APP_VARIANT: debug | |
| run: ./gradlew assembleDebug --no-daemon | |
| working-directory: android | |
| - name: Upload Debug APK artifact | |
| if: success() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: app-debug-${{ github.sha }} | |
| path: android/app/build/outputs/apk/debug/app-debug.apk | |
| retention-days: 14 |