Skip to content

Commit 97d00a4

Browse files
committed
Try building Windows in nightly snapshot
1 parent 2ae6db5 commit 97d00a4

File tree

4 files changed

+1659
-15
lines changed

4 files changed

+1659
-15
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ jobs:
154154
call mvn -version
155155
echo ^<settings^>^<servers^>^<server^>^<id^>ossrh^</id^>^<username^>${{ secrets.CI_DEPLOY_USERNAME }}^</username^>^<password^>${{ secrets.CI_DEPLOY_PASSWORD }}^</password^>^</server^>^</servers^>^</settings^> > %USERPROFILE%\.m2\settings.xml
156156
set "SKIP_EXPORT=true"
157-
call mvn clean install -pl "!tensorflow-framework" -B -U -e -Dnative.build -Djavacpp.platform=windows-x86_64 -Djavacpp.platform.extension=${{ matrix.ext }} -am -DstagingRepositoryId=${{ needs.prepare.outputs.stagingRepositoryId }}
157+
call mvn clean install -pl "!tensorflow-framework" -B -U -e -Djavacpp.platform=windows-x86_64 -Djavacpp.platform.extension=${{ matrix.ext }} -am -DstagingRepositoryId=${{ needs.prepare.outputs.stagingRepositoryId }}
158158
if ERRORLEVEL 1 exit /b
159159
deploy:
160160
if: github.event_name == 'push' && contains(github.ref, 'master')

tensorflow-core/tensorflow-core-native/scripts/dist_download.sh

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ case ${PLATFORM:-} in
1818
;;
1919
'windows-x86_64')
2020
WHEEL_URL='https://files.pythonhosted.org/packages/4c/48/1a5a15517f18eaa4ff8d598b1c000300b20c1bb0e624539d702117a0c369/tensorflow_intel-2.15.0-cp311-cp311-win_amd64.whl'
21-
CLIB_URL='https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-windows-x86_64-2.15.0.zip'
21+
#CLIB_URL='https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-windows-x86_64-2.15.0.zip'
22+
CLIB_URL='https://storage.googleapis.com/libtensorflow-nightly/prod/tensorflow/release/windows/latest/cpu/windows_cpu_libtensorflow_binaries.tar.gz'
2223
;;
2324
*)
2425
echo "TensorFlow distribution for ${PLATFORM} is not supported for download"
@@ -38,10 +39,17 @@ fi
3839

3940
if [[ -n "$CLIB_URL" ]]; then
4041
echo "Downloading $CLIB_URL"
41-
if [ ! -f 'tensorflow_c.zip' ]; then
42-
curl -L $CLIB_URL --output 'tensorflow_c.zip'
42+
# if [ ! -f 'tensorflow_c.zip' ]; then
43+
# curl -L $CLIB_URL --output 'tensorflow_c.zip'
44+
# fi
45+
# yes | unzip -q -u -d tensorflow 'tensorflow_c.zip'
46+
47+
# FIXME Temporary experiment to validate windows build from nightly snapshot
48+
if [ ! -f 'tensorflow_c.tar.gz' ]; then
49+
curl -L $CLIB_URL --output 'tensorflow_c.tar.gz'
4350
fi
44-
yes | unzip -q -u -d tensorflow 'tensorflow_c.zip'
51+
yes | tar xzvf 'tensorflow_c.tar.gz'
52+
yes | unzip -q -u 'lib_package/libtensorflow-cpu-windows-x86_64.zip'
4553
fi
4654

4755
cd tensorflow

0 commit comments

Comments
 (0)