build-debug.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. on:
  2. push:
  3. branches:
  4. - '*'
  5. tags:
  6. - '*'
  7. jobs:
  8. build-debug:
  9. runs-on: [docker, android-app-certs]
  10. container:
  11. volumes:
  12. - android-app-keystore:/keystore
  13. steps:
  14. - name: Repository Checkout
  15. uses: https://gitea.angry.im/actions/checkout@v3
  16. with:
  17. submodules: recursive
  18. fetch-depth: 0
  19. - name: Decode Secret Signing Configuration
  20. uses: https://gitea.angry.im/actions/base64-to-file@v1
  21. with:
  22. fileName: keystore.properties
  23. fileDir: ${{ env.GITHUB_WORKSPACE }}
  24. encodedString: ${{ secrets.OPENEUICC_SIGNING_CONFIG }}
  25. - name: Set up JDK 17
  26. uses: https://gitea.angry.im/actions/setup-java@v3
  27. with:
  28. java-version: '17'
  29. distribution: 'temurin'
  30. - name: Setup Android SDK
  31. uses: https://gitea.angry.im/actions/setup-android@v3
  32. - name: Build Debug APKs
  33. run: ./gradlew --no-daemon assembleDebug :app:assembleDebugMagiskModuleDir
  34. - name: Copy Artifacts
  35. run: |
  36. find . -name 'app*-debug.apk' -exec cp {} . \;
  37. cp -r app/build/magisk/debug ./magisk-debug
  38. - name: Upload APK Artifacts
  39. uses: https://gitea.angry.im/actions/upload-artifact@v3
  40. with:
  41. name: Debug APKs
  42. compression-level: 0
  43. path: app*-debug.apk
  44. - name: Upload Magisk Artifacts
  45. uses: https://gitea.angry.im/actions/upload-artifact@v3
  46. with:
  47. name: magisk-debug
  48. compression-level: 0
  49. path: magisk-debug