Add modular AGSL Cyberpunk Shader package and integrate into MainMenu… #9
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: kotlin-ci | |
| on: | |
| push: | |
| branches: ["master"] | |
| paths: | |
| - 'mobile/**' | |
| - '.github/workflows/kotlin-ci.yml' | |
| pull_request: | |
| branches: ["master"] | |
| paths: | |
| - 'mobile/**' | |
| concurrency: | |
| group: kotlin-ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint-and-format: | |
| name: ktlint & Code Style Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: "21" | |
| - name: Cache Gradle packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.gradle/caches | |
| ~/.gradle/wrapper | |
| key: ${{ runner.os }}-gradle-${{ hashFiles('mobile/**/*.gradle*', 'mobile/gradle/wrapper/gradle-wrapper.properties') }} | |
| restore-keys: | | |
| ${{ runner.os }}-gradle- | |
| - name: Run ktlint Check / Gradle Verification | |
| working-directory: mobile | |
| run: ./gradlew lintDebug --no-daemon || true | |
| unit-tests: | |
| name: Robolectric & JUnit Test Suite | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: "21" | |
| - name: Cache Gradle packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.gradle/caches | |
| ~/.gradle/wrapper | |
| key: ${{ runner.os }}-gradle-${{ hashFiles('mobile/**/*.gradle*', 'mobile/gradle/wrapper/gradle-wrapper.properties') }} | |
| restore-keys: | | |
| ${{ runner.os }}-gradle- | |
| - name: Run Unit & Robolectric Tests | |
| working-directory: mobile | |
| run: ./gradlew testDebugUnitTest --no-daemon | |
| - name: Upload Test Results | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: unit-test-results | |
| path: mobile/app/build/reports/tests/testDebugUnitTest/ | |
| build-apk-and-bundle: | |
| name: Build Android Debug APK & Release Bundle | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: "21" | |
| - name: Cache Gradle packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.gradle/caches | |
| ~/.gradle/wrapper | |
| key: ${{ runner.os }}-gradle-${{ hashFiles('mobile/**/*.gradle*', 'mobile/gradle/wrapper/gradle-wrapper.properties') }} | |
| restore-keys: | | |
| ${{ runner.os }}-gradle- | |
| - name: Build Debug APK | |
| working-directory: mobile | |
| run: ./gradlew assembleDebug --no-daemon | |
| - name: Upload Debug APK Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Metanoia-Android-Debug-APK | |
| path: mobile/app/build/outputs/apk/debug/app-debug.apk |