android.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. name: android
  2. # build on c/cpp changes or workflow changes
  3. on:
  4. push:
  5. paths:
  6. - 'lib/**.[ch]'
  7. - 'lib/**.cpp'
  8. - 'src/**.[ch]'
  9. - 'src/**.cpp'
  10. - 'build/android/**'
  11. - '.github/workflows/android.yml'
  12. pull_request:
  13. paths:
  14. - 'lib/**.[ch]'
  15. - 'lib/**.cpp'
  16. - 'src/**.[ch]'
  17. - 'src/**.cpp'
  18. - 'build/android/**'
  19. - '.github/workflows/android.yml'
  20. jobs:
  21. build:
  22. runs-on: ubuntu-18.04
  23. steps:
  24. - uses: actions/checkout@v2
  25. - name: Set up JDK 1.8
  26. uses: actions/setup-java@v1
  27. with:
  28. java-version: 1.8
  29. - name: Build with Gradle
  30. run: cd build/android; ./gradlew assemblerelease
  31. - name: Save armeabi artifact
  32. uses: actions/upload-artifact@v2
  33. with:
  34. name: Minetest-armeabi-v7a.apk
  35. path: build/android/app/build/outputs/apk/release/app-armeabi-v7a-release-unsigned.apk
  36. - name: Save arm64 artifact
  37. uses: actions/upload-artifact@v2
  38. with:
  39. name: Minetest-arm64-v8a.apk
  40. path: build/android/app/build/outputs/apk/release/app-arm64-v8a-release-unsigned.apk