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.

test-ant.yml 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # This workflow will build a Java project with Ant
  2. # For more information see: https://docs.github.com/en/free-pro-team@latest/actions/guides/building-and-testing-java-with-ant
  3. name: Java CI with Ant
  4. on:
  5. push:
  6. branches: [ trunk ]
  7. pull_request:
  8. branches: [ trunk ]
  9. jobs:
  10. build:
  11. runs-on: ${{ matrix.os }}
  12. strategy:
  13. fail-fast: false
  14. matrix:
  15. os: [ubuntu-latest]
  16. # for now verify JDK 8 and 11
  17. java: [ '8', '11' ]
  18. name: Java ${{ matrix.java }} build
  19. steps:
  20. - uses: actions/checkout@v2
  21. - name: Setup java ${{ matrix.java }}
  22. uses: actions/setup-java@v2
  23. with:
  24. distribution: 'adopt'
  25. java-version: ${{ matrix.java }}
  26. check-latest: true
  27. - name: Set up Ant
  28. id: setup-ant
  29. run: |
  30. wget https://www.apache.org/dist/ant/binaries/apache-ant-1.10.11-bin.tar.gz
  31. tar --exclude=apache-ant-1.10.9/manual -xzvf apache-ant-1.10.11-bin.tar.gz
  32. ANT_HOME=`pwd`/apache-ant-1.10.9 apache-ant-1.10.11/bin/ant -version
  33. - name: Cache downloaded third-party libraries
  34. uses: actions/cache@v2.1.3
  35. with:
  36. # A list of files, directories, and wildcard patterns to cache and restore
  37. path: lib
  38. # An explicit key for restoring and saving the cache
  39. key: poi-third-party-libs
  40. - name: Fetch site via SVN
  41. id: setup-doc-site
  42. run: |
  43. svn co https://svn.apache.org/repos/asf/poi/site/src/documentation src/documentation
  44. - name: Build with Ant
  45. run: ANT_HOME=`pwd`/apache-ant-1.10.9 apache-ant-1.10.9/bin/ant clean jenkins