Build APKs #26
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 APKs | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [main] | |
| jobs: | |
| build: | |
| name: Build APKs | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Setup JDK | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: temurin | |
| java-version: "17" | |
| - name: Download Gradle | |
| run: | | |
| cd gradle/wrapper | |
| curl -sL -o gradle-wrapper.jar https://github.com/gradle/gradle/raw/v9.4.1/gradle/wrapper/gradle-wrapper.jar | |
| cd ../.. | |
| chmod +x gradlew | |
| - name: Build Debug APK | |
| run: ./gradlew :android:assembleDebug --no-daemon | |
| - name: Show outputs | |
| run: | | |
| echo "=== Checking build outputs ===" | |
| ls -la android/build/outputs/ 2>/dev/null || echo "outputs dir not found" | |
| find android -name "*.apk" -type f 2>/dev/null || echo "No APKs found" | |
| - name: Upload Debug APK | |
| if: success() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: LinuxCommandLibrary-debug | |
| path: | | |
| android/build/outputs/apk/debug/*.apk | |
| retention-days: 5 |