build.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. name: Build
  2. on: [ push, pull_request ]
  3. jobs:
  4. build-mirai:
  5. runs-on: ${{ matrix.os }}
  6. strategy:
  7. fail-fast: false
  8. matrix:
  9. os: # mirai build requires a minimum system memory of 8 GB, while Windows and Ubuntu VMs provides only 7 GB. See https://github.com/mamoe/mirai/actions/runs/1608172113 for details.
  10. # - windows-latest
  11. - macos-11
  12. # - ubuntu-latest
  13. steps:
  14. - uses: actions/checkout@v2
  15. - name: Checkout submodules
  16. run: git submodule update --init --recursive
  17. - name: Setup JDK 11
  18. uses: actions/setup-java@v2
  19. with:
  20. distribution: 'adopt'
  21. java-version: '11'
  22. - name: chmod -R 777 *
  23. run: chmod -R 777 *
  24. - name: Init gradle project
  25. run: ./gradlew clean --scan
  26. - name: Build all
  27. run: ./gradlew assemble --scan
  28. - name: All Tests
  29. run: >
  30. ./gradlew check --scan
  31. "-Dmirai.network.show.all.components=true"
  32. "-Dkotlinx.coroutines.debug=on"
  33. "-Dmirai.network.show.packet.details=true"
  34. - name: Ensure KDoc valid
  35. run: ./gradlew dokkaHtmlMultiModule