diff --git a/tools/ci_build/build.py b/tools/ci_build/build.py index 134313fc6c5d7..8fafb9006039e 100755 --- a/tools/ci_build/build.py +++ b/tools/ci_build/build.py @@ -90,6 +90,8 @@ def parse_arguments(): # C-Sharp bindings parser.add_argument("--build_csharp", action='store_true', help="Build C#.Net DLL and NuGet package") + # Java bindings + parser.add_argument("--build_java", action='store_true', help="Build Java bindings.") # Build a shared lib parser.add_argument("--build_shared_lib", action='store_true', help="Build a shared library for the ONNXRuntime.") diff --git a/tools/ci_build/github/azure-pipelines/linux-ci-pipeline-with-java.yml b/tools/ci_build/github/azure-pipelines/linux-ci-pipeline-with-java.yml deleted file mode 100644 index 20268361f01aa..0000000000000 --- a/tools/ci_build/github/azure-pipelines/linux-ci-pipeline-with-java.yml +++ /dev/null @@ -1,9 +0,0 @@ -jobs: -- template: templates/linux-ci.yml - parameters: - AgentPool : 'Linux-CPU' - JobName: 'Linux_CI_Dev' - BuildCommand: 'tools/ci_build/github/linux/run_dockerbuild.sh -o ubuntu16.04 -d cpu -r $(Build.BinariesDirectory) -x "--use_mklml --use_llvm --use_nuphar --use_mkldnn --use_tvm --use_automl --build_wheel --build_java --enable_language_interop_ops"' - DoNugetPack: 'false' - ArtifactName: 'drop-linux' - TimeoutInMinutes: 120 diff --git a/tools/ci_build/github/azure-pipelines/linux-ci-pipeline.yml b/tools/ci_build/github/azure-pipelines/linux-ci-pipeline.yml index c0d6f6c52375c..267cc75c15ecb 100644 --- a/tools/ci_build/github/azure-pipelines/linux-ci-pipeline.yml +++ b/tools/ci_build/github/azure-pipelines/linux-ci-pipeline.yml @@ -3,7 +3,7 @@ jobs: parameters: AgentPool : 'Linux-CPU' JobName: 'Linux_CI_Dev' - BuildCommand: 'tools/ci_build/github/linux/run_dockerbuild.sh -o ubuntu16.04 -d cpu -r $(Build.BinariesDirectory) -x "--use_mklml --use_llvm --use_nuphar --use_dnnl --use_tvm --use_automl --build_wheel --enable_language_interop_ops"' + BuildCommand: 'tools/ci_build/github/linux/run_dockerbuild.sh -o ubuntu16.04 -d cpu -r $(Build.BinariesDirectory) -x "--use_mklml --use_llvm --use_nuphar --use_dnnl --use_tvm --use_automl --build_wheel --build_java --enable_language_interop_ops"' DoNugetPack: 'false' ArtifactName: 'drop-linux' TimeoutInMinutes: 120 diff --git a/tools/ci_build/github/azure-pipelines/mac-ci-pipeline.yml b/tools/ci_build/github/azure-pipelines/mac-ci-pipeline.yml index c3b3f8922a6d3..72626a0022777 100644 --- a/tools/ci_build/github/azure-pipelines/mac-ci-pipeline.yml +++ b/tools/ci_build/github/azure-pipelines/mac-ci-pipeline.yml @@ -3,4 +3,4 @@ jobs: parameters: AgentPool : 'Hosted macOS High Sierra' DoNugetPack: 'false' - BuildCommand: 'python3 $(Build.SourcesDirectory)/tools/ci_build/build.py --use_openmp --build_dir $(Build.BinariesDirectory) --build_wheel --skip_submodule_sync --use_automl --parallel --build_shared_lib --enable_language_interop_ops --enable_onnx_tests --config Debug RelWithDebInfo' + BuildCommand: 'python3 $(Build.SourcesDirectory)/tools/ci_build/build.py --use_openmp --build_dir $(Build.BinariesDirectory) --build_wheel --skip_submodule_sync --use_automl --parallel --build_shared_lib --build_java --enable_language_interop_ops --enable_onnx_tests --config Debug RelWithDebInfo' diff --git a/tools/ci_build/github/azure-pipelines/templates/mac-ci.yml b/tools/ci_build/github/azure-pipelines/templates/mac-ci.yml index 9a569fad92b0d..8440146a351b8 100644 --- a/tools/ci_build/github/azure-pipelines/templates/mac-ci.yml +++ b/tools/ci_build/github/azure-pipelines/templates/mac-ci.yml @@ -16,6 +16,10 @@ jobs: steps: - template: mac-set-variables-and-download.yml - script: | + export JAVA_HOME=/Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home + java --version + javac --version + sudo python3 -m pip install -r '$(Build.SourcesDirectory)/tools/ci_build/github/linux/docker/scripts/requirements.txt' sudo xcode-select --switch /Applications/Xcode_10.app/Contents/Developer ${{ parameters.BuildCommand }}