Skip to content

Commit 3de6ee8

Browse files
authored
Disable windows op export (#296)
1 parent 2eca4f0 commit 3de6ee8

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/workflows/ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ jobs:
228228
)
229229
df -h
230230
wmic pagefile list /format:list
231+
set "SKIP_EXPORT=true"
231232
echo Executing Maven %MAVEN_PHASE%
232233
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%"
233234
if ERRORLEVEL 1 exit /b

tensorflow-core/tensorflow-core-api/build.sh

+9-4
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,15 @@ mkdir -p $GEN_SRCS_DIR
8282
GEN_RESOURCE_DIR=src/gen/resources/org/tensorflow/op
8383
mkdir -p $GEN_RESOURCE_DIR
8484

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

9095

9196
# Copy generated Java protos from source jars

0 commit comments

Comments
 (0)