]> granicus.if.org Git - icu/commitdiff
ICU-21626 Add CIs to build/test Java 16.
authorFrank Tang <ftang@chromium.org>
Tue, 18 May 2021 21:12:34 +0000 (14:12 -0700)
committerFrank Yung-Fong Tang <ftang@google.com>
Wed, 26 May 2021 22:44:49 +0000 (15:44 -0700)
.github/workflows/icu_ci.yml
icu4j/build.xml

index 967f1460f2cb4e4835cf68364e5afdb6bed79a8c..628d5db04b7c14b899b752c98f501bac7bdd8cc9 100644 (file)
@@ -30,8 +30,8 @@ jobs:
            # Regex note: (?! ... ) is a negative lookahead. Succeed if the pattern is not present. 
           set +o pipefail && make doc 2>&1 | tee doxygen.log && ( ! grep -P 'warning:(?! .* file .?Doxyfile)' doxygen.log )
 
-  # ICU4J build and unit test
-  icu4j-build-and-test:
+  # ICU4J build and unit test under Java11
+  java11-icu4j-build-and-test:
     runs-on: ubuntu-latest
     steps:
       - name: Checkout and setup
@@ -53,6 +53,29 @@ jobs:
           [ -d icu4j/out/junit-results ] && cd icu4j && cat `find out/junit-results -name "*.txt" -exec grep -l FAILED {} \;`;
         if: ${{ failure() }}
 
+  # ICU4J build and unit test under Java16
+  java16-icu4j-build-and-test:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout and setup
+        uses: actions/checkout@v2
+        with:
+          lfs: true
+      - name: Checkout lfs objects
+        run: git lfs pull
+      - uses: actions/setup-java@v1
+        with:
+          java-version: '16'
+      - name: ICU4J
+        run: |
+          cd icu4j;
+          ant init;
+          ant check;
+      - name: List failures (if any)
+        run: |
+          [ -d icu4j/out/junit-results ] && cd icu4j && cat `find out/junit-results -name "*.txt" -exec grep -l FAILED {} \;`;
+        if: ${{ failure() }}
+
   # ICU4J build and unit test under lstm
   lstm-icu4j-build-and-test:
     runs-on: ubuntu-latest
index c430d1f1f47ace1201f51e9f372273f5738f2eec..253da34131279077fad1f476f8a0309041e4a113 100644 (file)
         <matches string="${java.version}" pattern="12((-.|\.\d).*)?"/>
     </condition>
 
+    <condition property="is.java13">
+        <matches string="${java.version}" pattern="13((-.|\.\d).*)?"/>
+    </condition>
+
+    <condition property="is.java14">
+        <matches string="${java.version}" pattern="14((-.|\.\d).*)?"/>
+    </condition>
+
+    <condition property="is.java15">
+        <matches string="${java.version}" pattern="15((-.|\.\d).*)?"/>
+    </condition>
+
+    <condition property="is.java16">
+        <matches string="${java.version}" pattern="16((-.|\.\d).*)?"/>
+    </condition>
+
+    <condition property="is.java17">
+        <matches string="${java.version}" pattern="17((-.|\.\d).*)?"/>
+    </condition>
+
+    <condition property="is.java18">
+        <matches string="${java.version}" pattern="18((-.|\.\d).*)?"/>
+    </condition>
+
+    <condition property="is.java19">
+        <matches string="${java.version}" pattern="19((-.|\.\d).*)?"/>
+    </condition>
+
     <condition property="is.java8.plus">
         <or>
             <isset property="is.java8"/>
             <isset property="is.java10"/>
             <isset property="is.java11"/>
             <isset property="is.java12"/>
+            <isset property="is.java13"/>
+            <isset property="is.java14"/>
+            <isset property="is.java15"/>
+            <isset property="is.java16"/>
+            <isset property="is.java17"/>
+            <isset property="is.java18"/>
+            <isset property="is.java19"/>
         </or>
     </condition>