tools/release: Fix java publish

This commit is contained in:
Mizux Seiha
2022-03-09 09:55:26 +01:00
parent 0ba8add1b5
commit a250f72301
3 changed files with 7 additions and 5 deletions

View File

@@ -67,8 +67,9 @@ function publish_java() {
command -v gpg
command -v gpg | xargs echo "gpg: " | tee -a build.log
echo -n "Publish Java..." | tee -a publish.log
make publish_java_runtime -l 4 UNIX_PYTHON_VER=3.9
echo -n "Publish native Java..." | tee -a publish.log
cmake --build temp_java --target java_native_deploy -v
echo "DONE" | tee -a publish.log
echo "${ORTOOLS_BRANCH} ${ORTOOLS_SHA1}" > "${ROOT_DIR}/export/java_publish"

View File

@@ -64,8 +64,9 @@ function publish_java() {
command -v gpg
command -v gpg | xargs echo "gpg: " | tee -a publish.log
echo -n "Publish Java..." | tee -a publish.log
make publish_java_runtime -l 4 UNIX_PYTHON_VER=3.9
echo -n "Publish native Java..." | tee -a publish.log
cmake --build temp_java --target java_native_deploy -v
echo "DONE" | tee -a publish.log
echo "${ORTOOLS_BRANCH} ${ORTOOLS_SHA1}" > "${ROOT_DIR}/export/java_publish"

View File

@@ -52,7 +52,7 @@ function publish_delivery() {
cd "${RELEASE_DIR}" || exit 2
# Build delivery
docker build --tag ortools:linux_delivery \
docker build --tag ortools/linux_delivery:"publish_${ORTOOLS_DELIVERY}" \
--build-arg ORTOOLS_GIT_BRANCH="${ORTOOLS_BRANCH}" \
--build-arg ORTOOLS_GIT_SHA1="${ORTOOLS_SHA1}" \
--build-arg ORTOOLS_TOKEN="${ORTOOLS_TOKEN}" \