refactor: remove dead codes && improve log exporting #2
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: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'app/**' | |
| - 'shared/**' | |
| - 'gradle/**' | |
| - 'gradlew' | |
| - 'settings.gradle*' | |
| - 'build.gradle*' | |
| - '.github/workflows/build-debug-apk.yml' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| lfs: true | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: '21' | |
| - name: Set up Android SDK | |
| uses: android-actions/setup-android@v3 | |
| - name: Install Android NDK r28 and CMake | |
| run: sdkmanager --install 'ndk;28.0.12433566' 'cmake;3.22.1' | |
| - name: Make Gradle wrapper executable | |
| run: chmod +x ./gradlew | |
| - name: Build debug APK | |
| run: ./gradlew assembleDebug | |
| - name: Upload debug APK artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: rotatingartlauncher-debug-apk | |
| path: app/build/outputs/apk/debug/*.apk | |
| if-no-files-found: error |