Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/ant.yml
Original file line number Diff line number Diff line change
@@ -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 }}

4 changes: 2 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ For instructions on how to build JDOM, please view the README.txt file.

<property name="compile.debug" value="true" />
<property name="compile.optimize" value="true" />
<property name="compile.target" value="1.5" />
<property name="compile.source" value="1.5" />
<property name="compile.target" value="1.7" />
<property name="compile.source" value="1.7" />
<property name="compile.deprecation" value="true" />

<property name="build" value="./build"/>
Expand Down