feat: allow the user to move the app to an SD card (#25) #8
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, master ] | |
| pull_request: | |
| branches: [ main, master ] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| name: Build debug APK | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Install SDK platform 25 & build-tools 25.0.0 | |
| run: | | |
| SDKMANAGER="$ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager" | |
| yes | "$SDKMANAGER" --sdk_root="$RUNNER_TEMP/android-sdk" --licenses > /dev/null 2>&1 || true | |
| "$SDKMANAGER" --sdk_root="$RUNNER_TEMP/android-sdk" "platforms;android-25" "build-tools;25.0.0" | |
| - name: Set up JDK 8 (for Gradle build) | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: '8' | |
| distribution: 'temurin' | |
| cache: 'gradle' | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Build debug APK | |
| env: | |
| ANDROID_HOME: ${{ runner.temp }}/android-sdk | |
| run: ./gradlew assembleDebug --no-daemon --stacktrace | |
| - name: Upload APK artifact | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: notPipe-debug-apk | |
| path: app/build/outputs/apk/*.apk | |
| retention-days: 30 |