diff --git a/.github/workflows/ant.yml b/.github/workflows/ant.yml
new file mode 100644
index 00000000..e8eee1c1
--- /dev/null
+++ b/.github/workflows/ant.yml
@@ -0,0 +1,29 @@
+name: Ant Build
+
+on: [push, pull_request]
+
+jobs:
+ build:
+ name: Build with Java ${{ matrix.jdk }}, target ${{ matrix.target }}
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ jdk: ['8', '11', '17']
+ target: ['1.7']
+ include:
+ - { jdk: '20', target: '1.8' }
+ - { jdk: '20', target: '11' }
+ - { jdk: '20', target: '17' }
+
+ steps:
+ - uses: actions/checkout@v3
+ - name: Set up JDK ${{ matrix.jdk }}
+ uses: actions/setup-java@v3
+ with:
+ distribution: temurin
+ java-version: ${{ matrix.jdk }}
+
+ - name: Build with Ant
+ run: ant -Dcompile.source=${{ matrix.target }} -Dcompile.target=${{ matrix.target }}
+
diff --git a/build.xml b/build.xml
index ed632c2c..4dce240f 100644
--- a/build.xml
+++ b/build.xml
@@ -47,8 +47,8 @@ For instructions on how to build JDOM, please view the README.txt file.
-
-
+
+