This is an automated email from the ASF dual-hosted git repository.
pjfanning pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/poi.git
The following commit(s) were added to refs/heads/trunk by this push:
new a07e531ec0 Update Ant setup in GitHub Actions workflow
a07e531ec0 is described below
commit a07e531ec0c729f88ea3e859ecf8b99e13f7317f
Author: PJ Fanning <[email protected]>
AuthorDate: Mon Sep 7 13:33:54 2026 +0100
Update Ant setup in GitHub Actions workflow
---
.github/workflows/test-ant.yml | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/test-ant.yml b/.github/workflows/test-ant.yml
index 1d07e4df90..26587e1ec8 100644
--- a/.github/workflows/test-ant.yml
+++ b/.github/workflows/test-ant.yml
@@ -9,6 +9,9 @@ on:
pull_request:
branches: [ trunk ]
+env:
+ ANT_VERSION: 1.10.18
+
jobs:
build:
runs-on: ${{ matrix.os }}
@@ -17,7 +20,6 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
- # for now verify JDK 8 and 11
java: [ 17, 21 ]
name: Java ${{ matrix.java }} build
@@ -30,9 +32,12 @@ jobs:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- # this is more robust than wget of the tar.gz
- - name: Install Ant
- run: sudo apt-get update && sudo apt-get install -y ant
+ - name: Set up Ant
+ id: setup-ant
+ run: |
+ wget https://archive.apache.org/dist/ant/binaries/apache-ant-${{
env.ANT_VERSION }}-bin.tar.gz
+ tar --exclude=apache-ant-${{ env.ANT_VERSION }}/manual -xzvf
apache-ant-${{ env.ANT_VERSION }}-bin.tar.gz
+ ANT_HOME=`pwd`/apache-ant-${{ env.ANT_VERSION }} apache-ant-${{
env.ANT_VERSION }}/bin/ant -version
- name: Cache downloaded third-party libraries
uses: actions/cache@v6
@@ -43,4 +48,4 @@ jobs:
key: poi-third-party-libs
- name: Build with Ant
- run: ANT_HOME=`pwd`/apache-ant-1.10.17 apache-ant-1.10.17/bin/ant clean
jenkins
+ run: ANT_HOME=`pwd`/apache-ant-${{ env.ANT_VERSION }} apache-ant-${{
env.ANT_VERSION }}/bin/ant clean jenkins
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]