1
1
name : Build JSP
2
2
3
+ env :
4
+ CURRENT_UVERSION : 15.1.0
5
+ PREVIOUS_UVERSION : 15.0.0 # not used at present
6
+
3
7
on :
4
8
push :
5
9
branches :
@@ -11,12 +15,16 @@ jobs:
11
15
build :
12
16
runs-on : ubuntu-latest
13
17
steps :
14
- - uses : actions/checkout@v2
18
+ - uses : actions/checkout@v3
19
+ - name : Get the CLDR_REF from pom.xml
20
+ id : cldr_ref
21
+ run : pip install yq && echo ::set-output name=CLDR_REF::$(xq -r '.project.properties["cldr.version"]' < pom.xml)
15
22
- name : Check out CLDR
16
23
uses : actions/checkout@v2
17
24
with :
18
25
repository : unicode-org/cldr
19
26
path : cldr
27
+ ref : ${{ steps.cldr-ref.outputs.CLDR_REF}}
20
28
- name : Backup Unicodetools and CLDR for jsps # this is needed only for the Docker build
21
29
run :
22
30
mkdir -p UnicodeJsps/target && tar cfpz UnicodeJsps/target/cldr-unicodetools.tgz ./cldr ./unicodetools
@@ -38,16 +46,16 @@ jobs:
38
46
run : >
39
47
mkdir -pv $(pwd)/output/Generated/ &&
40
48
mvn -s .github/workflows/mvn-settings.xml -B compile exec:java -DskipTests=true
41
- -Dexec.mainClass="org.unicode.text.UCD.Main" -Dexec.args="version 15.1.0 build MakeUnicodeFiles"
49
+ -Dexec.mainClass="org.unicode.text.UCD.Main" -Dexec.args="version ${CURRENT_UVERSION} build MakeUnicodeFiles"
42
50
-am -pl unicodetools -DCLDR_DIR=${GITHUB_WORKSPACE}/cldr
43
- -DUNICODETOOLS_REPO_DIR=$(pwd) -DUVERSION=15.1.0
51
+ -DUNICODETOOLS_REPO_DIR=$(pwd) -DUVERSION=${CURRENT_UVERSION}
44
52
-DUNICODETOOLS_GEN_DIR=$(pwd)/output/Generated
45
53
env :
46
54
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
47
55
- name : Run unicodetools tests
48
56
run : >
49
57
mvn -s .github/workflows/mvn-settings.xml -B test -am -pl unicodetools
50
- -DCLDR_DIR=${GITHUB_WORKSPACE}/cldr -T 1C -Dparallel=classes -DUNICODETOOLS_REPO_DIR=$(pwd) -DUVERSION=15.1.0 -DUNICODETOOLS_GEN_DIR=$(pwd)/output/Generated
58
+ -DCLDR_DIR=${GITHUB_WORKSPACE}/cldr -T 1C -Dparallel=classes -DUNICODETOOLS_REPO_DIR=$(pwd) -DUVERSION=${CURRENT_UVERSION} -DUNICODETOOLS_GEN_DIR=$(pwd)/output/Generated
51
59
env :
52
60
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
53
61
- name : Package JSPs
0 commit comments