Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ jobs:
)
df -h
wmic pagefile list /format:list
set "SKIP_EXPORT=true"
echo Executing Maven %MAVEN_PHASE%
call mvn clean %MAVEN_PHASE% -B -U -e -Djavacpp.platform=windows-x86_64 -Djavacpp.platform.extension=${{ matrix.ext }} -pl %NATIVE_BUILD_PROJECTS% -am -DstagingRepositoryId=${{ needs.prepare.outputs.stagingRepositoryId }} "-Dnative.build.flags=%BAZEL_CACHE%"
if ERRORLEVEL 1 exit /b
Expand Down
13 changes: 9 additions & 4 deletions tensorflow-core/tensorflow-core-api/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,15 @@ mkdir -p $GEN_SRCS_DIR
GEN_RESOURCE_DIR=src/gen/resources/org/tensorflow/op
mkdir -p $GEN_RESOURCE_DIR

# Export op defs
$BAZEL_BIN/java_op_exporter \
--api_dirs=$BAZEL_SRCS/external/org_tensorflow/tensorflow/core/api_def/base_api,src/bazel/api_def \
$TENSORFLOW_LIB > $GEN_RESOURCE_DIR/ops.pb
if [[ -z "${SKIP_EXPORT:-}" ]]; then
# Export op defs
echo "Exporting Ops"
$BAZEL_BIN/java_op_exporter \
--api_dirs=$BAZEL_SRCS/external/org_tensorflow/tensorflow/core/api_def/base_api,src/bazel/api_def \
$TENSORFLOW_LIB > $GEN_RESOURCE_DIR/ops.pb
else
echo "Skipping Op export"
fi


# Copy generated Java protos from source jars
Expand Down