Skip to content

Commit

Permalink
Try building Windows in nightly snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
karllessard committed Feb 4, 2024
1 parent 7ce910f commit 22968cc
Show file tree
Hide file tree
Showing 4 changed files with 1,659 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ jobs:
call mvn -version
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
set "SKIP_EXPORT=true"
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 }}
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 }}
if ERRORLEVEL 1 exit /b
deploy:
if: github.event_name == 'push' && contains(github.ref, 'master')
Expand Down
16 changes: 12 additions & 4 deletions tensorflow-core/tensorflow-core-native/scripts/dist_download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ case ${PLATFORM:-} in
;;
'windows-x86_64')
WHEEL_URL='https://files.pythonhosted.org/packages/4c/48/1a5a15517f18eaa4ff8d598b1c000300b20c1bb0e624539d702117a0c369/tensorflow_intel-2.15.0-cp311-cp311-win_amd64.whl'
CLIB_URL='https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-windows-x86_64-2.15.0.zip'
#CLIB_URL='https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-windows-x86_64-2.15.0.zip'
CLIB_URL='https://storage.googleapis.com/libtensorflow-nightly/prod/tensorflow/release/windows/latest/cpu/windows_cpu_libtensorflow_binaries.tar.gz'
;;
*)
echo "TensorFlow distribution for ${PLATFORM} is not supported for download"
Expand All @@ -38,10 +39,17 @@ fi

if [[ -n "$CLIB_URL" ]]; then
echo "Downloading $CLIB_URL"
if [ ! -f 'tensorflow_c.zip' ]; then
curl -L $CLIB_URL --output 'tensorflow_c.zip'
# if [ ! -f 'tensorflow_c.zip' ]; then
# curl -L $CLIB_URL --output 'tensorflow_c.zip'
# fi
# yes | unzip -q -u -d tensorflow 'tensorflow_c.zip'

# FIXME Temporary experiment to validate windows build from nightly snapshot
if [ ! -f 'tensorflow_c.tar.gz' ]; then
curl -L $CLIB_URL --output 'tensorflow_c.tar.gz'
fi
yes | unzip -q -u -d tensorflow 'tensorflow_c.zip'
yes | tar xzvf 'tensorflow_c.tar.gz'
yes | unzip -q -u 'lib_package/libtensorflow-cpu-windows-x86_64.zip'
fi

cd tensorflow
Expand Down
Loading

0 comments on commit 22968cc

Please sign in to comment.