Skip to content

Commit ee490d0

Browse files
vlsikubycsolutions
authored andcommitted
cherrypick from master, use mvn build.
1 parent 44bf3b7 commit ee490d0

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed

.github/workflows/main.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
pull_request:
8+
branches:
9+
- '*'
10+
11+
permissions:
12+
contents: read
13+
14+
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/software-installed-on-github-hosted-runners
15+
# GitHub Actions does not support Docker, PostgreSQL server on Windows, macOS :(
16+
17+
concurrency:
18+
# On master/release, we don't want any jobs cancelled so the sha is used to name the group
19+
# On PR branches, we cancel the job if new commits are pushed
20+
# More info: https://stackoverflow.com/a/68422069/253468
21+
group: ${{ github.ref == 'refs/heads/trunk' && format('ci-main-{0}', github.sha) || format('ci-main-{0}', github.ref) }}
22+
cancel-in-progress: true
23+
24+
jobs:
25+
build:
26+
name: 'Java 8'
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: 'Checkout xalan-java'
30+
uses: actions/checkout@v3
31+
- name: 'Set up JDK 8'
32+
uses: actions/setup-java@v2
33+
with:
34+
distribution: zulu
35+
java-version: 8
36+
- name: 'Build Xalan jars'
37+
run: |
38+
mvn clean compile site package
39+
- uses: actions/checkout@v3
40+
name: 'Checkout xalan-test'
41+
with:
42+
repository: apache/xalan-test
43+
path: xalan-test
44+
ref: master
45+
- name: 'Run xalan-test tests'
46+
working-directory: xalan-test
47+
# NOTE: "alltest" target includes conformance tests known not to run in Xalan,
48+
# as well as having dependencies on some targets which have since been edited
49+
# out. The following is our typical minimal build test as documented in README,
50+
# minus conf.xsltc since that one is currently throwing four known failures and
51+
# isn't set up to say "but that's not a regression".
52+
run: |
53+
ant jar extensions.classes smoketest apitest -Dxalan.relpath=../ -Dparserjar=../lib/endorsed/xercesImpl.jar -Dxml-apis.jar=../lib/endorsed/xml-apis.jar
54+
55+
# ant fulldist is failing: in CI
56+
# /home/runner/work/xalan-java/xalan-java/build.xml:1399: /home/runner/work/xalan-java/xalan-test does not exist.
57+
# Error replicated on my system if there is not a sibling xalan-test.
58+
# NOT replicated if sibling xalan-test directory is present
59+
# Simplest fix would be to have the above test checkout emulate the dev environment;
60+
# better would be to fix fulldist to intelligently check both locations;
61+
# best might be to adopt xalan-test back into the xalan repository, if it's no longer being used elsewhere.
62+
- name: 'Cheat xalan-test up to be sibling of xalan-java'
63+
run: |
64+
mv xalan-test ..; ls ..
65+
- id: build_artifacts
66+
run: |
67+
ant fulldist
68+

0 commit comments

Comments
 (0)