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.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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
  17. java: [ '8' ]
  18. name: Java ${{ matrix.java }} build
  19. env:
  20. ANT_VERSION: 1.10.11
  21. steps:
  22. - uses: actions/checkout@v2
  23. - name: Setup java ${{ matrix.java }}
  24. uses: actions/setup-java@v2
  25. with:
  26. distribution: 'adopt'
  27. java-version: ${{ matrix.java }}
  28. check-latest: true
  29. - name: Set up Ant
  30. id: setup-ant
  31. run: |
  32. wget https://archive.apache.org/dist/ant/binaries/apache-ant-$ANT_VERSION-bin.tar.gz
  33. tar --exclude=apache-ant-$ANT_VERSION/manual -xzvf apache-ant-$ANT_VERSION-bin.tar.gz
  34. ANT_HOME=`pwd`/apache-ant-$ANT_VERSION $ANT_HOME/bin/ant -version
  35. - name: Cache downloaded third-party libraries
  36. uses: actions/cache@v2.1.3
  37. with:
  38. # A list of files, directories, and wildcard patterns to cache and restore
  39. path: lib
  40. # An explicit key for restoring and saving the cache
  41. key: poi-third-party-libs
  42. - name: Fetch site via SVN
  43. id: setup-doc-site
  44. run: |
  45. svn co https://svn.apache.org/repos/asf/poi/site/src/documentation src/documentation
  46. - name: Build with Ant
  47. run: ANT_HOME=`pwd`/apache-ant-$ANT_VERSION $ANT_HOME/bin/ant clean jenkins