diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 969ebe9aecc..692ebac7fff 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -40,6 +40,35 @@ jobs:
- name: Run lint checks
run: |
mvn compiler:compile -Pdev,jdk11 -B -U -e
+ test-mr:
+ if: github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'CI build')
+ runs-on: ubuntu-latest
+ container: centos:7
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v1
+ - name: Setup Java
+ uses: actions/setup-java@v1
+ with:
+ java-version: 11
+ - name: Install environment
+ run: |
+ echo Downloading Maven
+ curl -L https://archive.apache.org/dist/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz -o $HOME/apache-maven-3.6.3-bin.tar.gz
+ tar xzf $HOME/apache-maven-3.6.3-bin.tar.gz -C /opt/
+ ln -sf /opt/apache-maven-3.6.3/bin/mvn /usr/bin/mvn
+ - name: Build project
+ run: |
+ mvn -version
+ mvn clean install -Pdev -B -U -e -Dlint.skip=true
+ - name: Setup Java 8
+ uses: actions/setup-java@v1
+ with:
+ java-version: 8
+ - name: Java 8 tests
+ run: |
+ mvn -version
+ mvn surefire:test -Pdev -B -U -e -Dlint.skip=true
check-format:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
diff --git a/tensorflow-core/tensorflow-core-api/pom.xml b/tensorflow-core/tensorflow-core-api/pom.xml
index 4ebe1234e80..7fc261401a9 100644
--- a/tensorflow-core/tensorflow-core-api/pom.xml
+++ b/tensorflow-core/tensorflow-core-api/pom.xml
@@ -169,6 +169,22 @@
${project.basedir}/src/gen/annotations
+
+ compile-java-11
+ compile
+
+ compile
+
+
+ 11
+ 11
+ 11
+
+ ${project.basedir}/src/main/java11
+
+ true
+
+