You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ci-build.yml 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. name: Continous integration
  2. on:
  3. push:
  4. branches-ignore:
  5. - 'release*'
  6. - gh-pages
  7. pull_request:
  8. branches-ignore:
  9. - 'release*'
  10. - gh-pages
  11. jobs:
  12. build_linux:
  13. name: Linux build and test
  14. runs-on: ubuntu-latest
  15. strategy:
  16. matrix:
  17. java-version: [8, 11]
  18. steps:
  19. - name: Checkout
  20. uses: actions/checkout@v3
  21. with:
  22. submodules: true
  23. - name: Setup Java ${{ matrix.java-version }}
  24. uses: actions/setup-java@v3
  25. with:
  26. java-version: ${{ matrix.java-version }}
  27. distribution: 'temurin'
  28. - name: Setup Moxie
  29. run: |
  30. wget http://gitblit-org.github.io/moxie/maven/com/gitblit/moxie/moxie+ant/0.10.0/moxie+ant-0.10.0.tar.gz
  31. tar -xzf moxie+ant-0.10.0.tar.gz
  32. moxie-0.10.0/bin/moxie -version
  33. - name: Report Java version
  34. run: |
  35. java -version
  36. javac -version
  37. - name: Build with Moxie
  38. run: moxie-0.10.0/bin/moxie test
  39. build_windows:
  40. name: Windows build and test
  41. runs-on: windows-latest
  42. strategy:
  43. matrix:
  44. java-version: [8, 11]
  45. steps:
  46. - name: Checkout
  47. uses: actions/checkout@v3
  48. with:
  49. submodules: true
  50. - name: Setup Java ${{ matrix.java-version }}
  51. uses: actions/setup-java@v3
  52. with:
  53. java-version: ${{ matrix.java-version }}
  54. distribution: 'temurin'
  55. - name: Report Java version
  56. run: |
  57. java -version
  58. javac -version
  59. - name: Build with Ant
  60. run: ant test