This is an automated email from the ASF dual-hosted git repository.

centic9 pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/poi.git

commit 2e38a14af99f9d57b55bb789adcca7cba78013d4
Author: Dominik Stadler <[email protected]>
AuthorDate: Sat Oct 25 09:25:20 2025 +0200

    Add GitHub Action to verify ant-build with JDK 17 and 21
---
 .github/workflows/test-ant.yml | 49 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

diff --git a/.github/workflows/test-ant.yml b/.github/workflows/test-ant.yml
new file mode 100644
index 0000000000..e50f226320
--- /dev/null
+++ b/.github/workflows/test-ant.yml
@@ -0,0 +1,49 @@
+# This workflow will build a Java project with Ant
+# For more information see: 
https://docs.github.com/en/free-pro-team@latest/actions/guides/building-and-testing-java-with-ant
+
+name: Java CI with Ant
+
+on:
+  push:
+    branches: [ trunk ]
+  pull_request:
+    branches: [ trunk ]
+
+jobs:
+  build:
+    runs-on: ${{ matrix.os }}
+
+    strategy:
+      fail-fast: false
+      matrix:
+        os: [ubuntu-latest]
+        # for now verify JDK 8 and 11
+        java: [ 17, 21 ]
+
+    name: Java ${{ matrix.java }} build
+    steps:
+    - uses: actions/checkout@v5
+
+    - name: Setup java ${{ matrix.java }}
+      uses: actions/setup-java@v5
+      with:
+        distribution: 'temurin'
+        java-version: ${{ matrix.java }}
+
+    - name: Set up Ant
+      id: setup-ant
+      run: |
+        wget 
https://www.apache.org/dist/ant/binaries/apache-ant-1.10.15-bin.tar.gz
+        tar --exclude=apache-ant-1.10.15/manual -xzvf 
apache-ant-1.10.15-bin.tar.gz
+        ANT_HOME=`pwd`/apache-ant-1.10.15 apache-ant-1.10.15/bin/ant -version
+
+    - name: Cache downloaded third-party libraries
+      uses: actions/[email protected]
+      with:
+        # A list of files, directories, and wildcard patterns to cache and 
restore
+        path: lib
+        # An explicit key for restoring and saving the cache
+        key: poi-third-party-libs
+
+    - name: Build with Ant
+      run: ANT_HOME=`pwd`/apache-ant-1.10.15 apache-ant-1.10.15/bin/ant clean 
jenkins


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to