build.yml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. name: Build
  2. on: [ push, pull_request ]
  3. jobs:
  4. build-mirai-core:
  5. runs-on: ubuntu-latest
  6. steps:
  7. - uses: actions/checkout@v2
  8. - name: Set up JDK 1.8
  9. uses: actions/setup-java@v1
  10. with:
  11. java-version: 1.8
  12. - name: chmod -R 777 *
  13. run: chmod -R 777 *
  14. - name: Init gradle project
  15. run: ./gradlew clean --scan
  16. - name: Build mirai-core series
  17. run: ./gradlew assemble --scan
  18. - name: mirai-core Tests
  19. run: >
  20. ./gradlew check --scan
  21. -Dmirai.network.show.all.components=true
  22. -Dkotlinx.coroutines.debug=on
  23. -Dmirai.network.show.packet.details=true
  24. build-all:
  25. runs-on: ubuntu-latest
  26. steps:
  27. - name: Checkout repository
  28. uses: actions/checkout@v2
  29. - name: Checkout submodules
  30. run: git submodule update --init --recursive
  31. - name: Set up JDK 1.8
  32. uses: actions/setup-java@v1
  33. with:
  34. java-version: 1.8
  35. - name: chmod -R 777 *
  36. run: chmod -R 777 *
  37. - name: Init gradle project
  38. run: ./gradlew clean --scan
  39. - name: Build all
  40. run: ./gradlew assemble --scan
  41. - name: All Tests
  42. run: >
  43. ./gradlew check --scan
  44. -Dmirai.network.show.all.components=true
  45. -Dkotlinx.coroutines.debug=on
  46. -Dmirai.network.show.packet.details=true