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

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