build-debug.yml 1.2 KB

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