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 Android Code Studio | |
| on: | |
| push: | |
| branches: [ "dev", "main", "indexing", "release/**" ] | |
| pull_request: | |
| branches: [ "dev" ] | |
| workflow_dispatch: { } | |
| jobs: | |
| build: | |
| name: Build Android APK | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: 'recursive' | |
| fetch-depth: 0 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Grant Execute Permission | |
| run: chmod +x gradlew | |
| - name: Clean and Assemble Debug APK | |
| run: | | |
| # Pehle saari purani cache aur build folders saaf karo | |
| ./gradlew clean | |
| # Assemble Debug (Default signing ke sath) | |
| ./gradlew :core:app:assembleDebug --no-daemon --stacktrace | |
| - name: Upload Debug APK | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: app-debug-apk | |
| path: core/app/build/outputs/apk/debug/*.apk | |
| if-no-files-found: error |