-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ee51632
commit ea91552
Showing
3 changed files
with
117 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
workflow_dispatch: | ||
|
||
env: | ||
DITA_OT_VERSION: 4.1.2 | ||
|
||
jobs: | ||
|
||
dita-ot_4-1-2: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use Java 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 17 | ||
distribution: 'zulu' | ||
- name: DITA-OT | ||
run: | | ||
curl --location --remote-name https://github.com/dita-ot/dita-ot/releases/download/4.1.2/dita-ot-4.1.2.zip | ||
unzip dita-ot-4.1.2 | ||
chmod +x dita-ot-4.1.2/bin/dita | ||
chmod +x dita-ot-4.1.2/bin/ant | ||
zip -qq -r org.jung.schematron.zip . -x ./.git/**\* | ||
dita-ot-4.1.2/bin/dita install org.jung.schematron.zip --force | ||
- name: Build test files | ||
run: | | ||
dita-ot-4.1.2/bin/dita --project=samples/samples.xml --output=4.1.2 --processing-mode=strict --verbose | ||
- name: Archive production artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: org.jung.terminology-4-1-2 | ||
path: | | ||
4.1.2 | ||
dita-ot_4-0-2: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use Java 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 17 | ||
distribution: 'zulu' | ||
- name: DITA-OT | ||
run: | | ||
curl --location --remote-name https://github.com/dita-ot/dita-ot/releases/download/4.0.2/dita-ot-4.0.2.zip | ||
unzip dita-ot-4.0.2 | ||
chmod +x dita-ot-4.0.2/bin/dita | ||
chmod +x dita-ot-4.0.2/bin/ant | ||
zip -qq -r org.jung.schematron.zip . -x ./.git/**\* | ||
dita-ot-4.0.2/bin/dita install org.jung.schematron.zip --force | ||
- name: Build test files | ||
run: | | ||
dita-ot-4.0.2/bin/dita --project=samples/samples.xml --output=4.0.2 --processing-mode=strict --verbose | ||
- name: Archive production artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: org.jung.terminology-4-0-2 | ||
path: | | ||
4.0.2 | ||
dita-ot_3-7-4: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use Java 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 17 | ||
distribution: 'zulu' | ||
- name: DITA-OT | ||
run: | | ||
curl --location --remote-name https://github.com/dita-ot/dita-ot/releases/download/3.7.4/dita-ot-3.7.4.zip | ||
unzip dita-ot-3.7.4 | ||
chmod +x dita-ot-3.7.4/bin/dita | ||
chmod +x dita-ot-3.7.4/bin/ant | ||
zip -qq -r org.jung.terminology.zip . -x ./.git/**\* | ||
zip -qq -r org.jung.schematron.zip . -x ./.git/**\* | ||
dita-ot-3.7.4/bin/dita install org.jung.schematron.zip --force | ||
- name: Build test files | ||
run: | | ||
dita-ot-3.7.4/bin/dita --project=samples/samples.xml --output=3.7.4 --processing-mode=strict --verbose | ||
- name: Archive production artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: org.jung.terminology-3-7-4 | ||
path: | | ||
3.7.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="https://www.dita-ot.org/project"> | ||
|
||
<deliverable name="org.jung.schematron samples" id="samples"> | ||
<context name="org.jung.schematron samples" id="samples-context"> | ||
<input href="sample.ditamap"/> | ||
</context> | ||
<output href="./pdf"/> | ||
<publication transtype="pdf2"> | ||
<param name="schematron.topic.validation.files" path="../rules/topic-validation.sch,../rules/topic-terminology.sch"/> | ||
<param name="schematron.fail" value="true"/> | ||
<param name="schematorn.failon.error" value="true"/> | ||
</publication> | ||
</deliverable> | ||
|
||
</project> |