diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 000000000..ccde27a81
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,53 @@
+name: CI
+
+on:
+ push:
+ branches:
+ - '*'
+ pull_request:
+ branches:
+ - '*'
+
+permissions:
+ contents: read
+
+# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/software-installed-on-github-hosted-runners
+# GitHub Actions does not support Docker, PostgreSQL server on Windows, macOS :(
+
+concurrency:
+ # On master/release, we don't want any jobs cancelled so the sha is used to name the group
+ # On PR branches, we cancel the job if new commits are pushed
+ # More info: https://stackoverflow.com/a/68422069/253468
+ group: ${{ github.ref == 'refs/heads/trunk' && format('ci-main-{0}', github.sha) || format('ci-main-{0}', github.ref) }}
+ cancel-in-progress: true
+
+jobs:
+ build:
+ name: 'Build, Java 8'
+ runs-on: ubuntu-latest
+ steps:
+ - name: 'Checkout xalan-java'
+ uses: actions/checkout@v3
+ - name: 'Set up JDK 8'
+ uses: actions/setup-java@v2
+ with:
+ distribution: zulu
+ java-version: 8
+ - name: 'Build Xalan jars'
+ run: |
+ ant jar
+ - uses: actions/checkout@v3
+ name: 'Checkout xalan-test'
+ with:
+ repository: apache/xalan-test
+ path: xalan-test
+ ref: xalan-j_2_7_x
+ - name: 'Run xalan-test tests'
+ working-directory: xalan-test
+ run: |
+ ant alltest -Dxalan.relpath=../ -Dparserjar=../lib/endorsed/xercesImpl.jar -Dxml-apis.jar=../lib/endorsed/xml-apis.jar
+ env:
+ _JAVA_OPTIONS: -XX:+UnlockExperimentalVMOptions -XX:hashCode=2
+ - id: build_artifacts
+ run: |
+ ant fulldist
diff --git a/.gitignore b/.gitignore
index f4d30d4c8..15e3d4e1e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,33 @@
/bin/
-/build/
\ No newline at end of file
+/build/
+/classes/
+/.idea/
+*.iml
+.DS_Store
+
+# We download the dependencies if they are missing
+/lib/
+/tools/java_cup.jar
+/tmp/
+
+# Generated sources
+/src/org/apache/xalan/processor/XSLProcessorVersion.java
+/src/org/apache/xalan/xsltc/compiler/XPathLexer.java
+/src/org/apache/xalan/xsltc/compiler/XPathParser.java
+/src/org/apache/xalan/xsltc/compiler/sym.java
+/xdocs/sources/xalan/DONE
+/xdocs/sources/xalan/XSLTCDONE
+/xdocs/style/graphics/
+/xdocs/style/loader.xml
+/xdocs/style/resources/
+/xdocs/style/stylesheets/any2header.xsl
+/xdocs/style/stylesheets/any2project.xsl
+/xdocs/style/stylesheets/book2group.xsl
+/xdocs/style/stylesheets/book2project.xsl
+/xdocs/style/stylesheets/changes2document.xsl
+/xdocs/style/stylesheets/context2footer.xsl
+/xdocs/style/stylesheets/context2label.xsl
+/xdocs/style/stylesheets/directory2project.xsl
+/xdocs/style/stylesheets/document2html.xsl
+/xdocs/style/stylesheets/faqs2document.xsl
+/xdocs/style/stylesheets/group2document.xsl
diff --git a/build.xml b/build.xml
index 978ab87ad..837d9d100 100644
--- a/build.xml
+++ b/build.xml
@@ -82,9 +82,11 @@ $Id$
+
+
@@ -98,14 +100,18 @@ $Id$
+
+
+
+
@@ -122,8 +128,10 @@ $Id$
-
+
+
+
@@ -225,6 +233,42 @@ $Id$
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -295,9 +339,10 @@ $Id$
-
-
-
+
+
+
+
@@ -321,7 +366,7 @@ $Id$
-
+
@@ -502,7 +547,9 @@ $Id$
-
+
+
@@ -844,9 +891,9 @@ $Id$
-
+
-
+
@@ -901,7 +948,7 @@ $Id$
-
+
-
+
+
+
+
-
+
+
@@ -1394,7 +1444,6 @@ $Id$
-
@@ -1403,7 +1452,6 @@ $Id$
-
@@ -1631,18 +1679,6 @@ $Id$
-
-
-
-
-
-
-
-
-
-
-