android.yml 574 B

123456789101112131415161718192021222324252627
  1. name: Android CI
  2. on: workflow_dispatch
  3. jobs:
  4. build:
  5. runs-on: ubuntu-latest
  6. steps:
  7. - uses: actions/checkout@v4
  8. - name: Set up JDK 17
  9. uses: actions/setup-java@v4
  10. with:
  11. java-version: '17'
  12. distribution: 'temurin'
  13. cache: gradle
  14. - name: Grant execute permission for gradlew
  15. run: chmod +x gradlew
  16. - name: Build with Gradle
  17. run: ./gradlew clean aDebug
  18. # 打包完成之后进行上传
  19. - uses: actions/upload-artifact@v4
  20. with:
  21. path: chat/build/outputs/apk/debug/chat-debug.apk