|
| 1 | +# Copyright 2026 The TensorFlow Authors. All Rights Reserved. |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | +# ============================================================================== |
| 15 | +TFCI_DOCKER_ENABLE=1 |
| 16 | +if [[ "$TFCI_GITHUB_ACTIONS" == "true" ]]; then |
| 17 | + TFCI_DOCKER_ENABLE=0 |
| 18 | +fi |
| 19 | +TFCI_DOCKER_PULL_ENABLE=1 |
| 20 | +TFCI_DOCKER_IMAGE="us-docker.pkg.dev/ml-oss-artifacts-published/ml-public-container/ml-build-windows@sha256:023fa901fda70be8890b05689d0a667287692c1f59d0abe4add7208ec5a12707" |
| 21 | +TFCI_BAZEL_BAZELRC_ARGS="--output_user_root=C:/x" |
| 22 | +TFCI_BAZEL_COMMON_ARGS="--repo_env=HERMETIC_PYTHON_VERSION=$TFCI_PYTHON_VERSION --repo_env=USE_PYWRAP_RULES=True --config=windows_x86_cpu_2022" |
| 23 | + |
| 24 | +# For RBE, we explicitly set invalid paths to force the auto-configuration to fail. |
| 25 | +TFCI_BAZEL_VC="C:/RBE_ISOLATED_INVALID_PATH" |
| 26 | +TFCI_BAZEL_LLVM="C:/RBE_ISOLATED_INVALID_PATH" |
| 27 | +TFCI_BAZEL_SH="C:/tools/msys64/usr/bin/bash.exe" |
| 28 | +TFCI_USE_CLANG_CL=0 |
| 29 | + |
| 30 | +# Map TFCI_BAZEL_* to BAZEL_* so cc_configure can find them in the environment. |
| 31 | +# We use the shell's default value substitution to ensure that if these are |
| 32 | +# already set (e.g. poisoned for RBE), we don't overwrite them with empty values |
| 33 | +# before setup.sh has a chance to restore the TFCI_ variables. |
| 34 | +export BAZEL_VC="${TFCI_BAZEL_VC:-$BAZEL_VC}" |
| 35 | +export BAZEL_LLVM="${TFCI_BAZEL_LLVM:-$BAZEL_LLVM}" |
| 36 | +export BAZEL_SH="${TFCI_BAZEL_SH:-$BAZEL_SH}" |
| 37 | +export USE_CLANG_CL="${TFCI_USE_CLANG_CL:-$USE_CLANG_CL}" |
| 38 | +TFCI_BAZEL_TARGET_SELECTING_CONFIG_PREFIX=windows_x86_ml_actions |
| 39 | +TFCI_BUILD_PIP_PACKAGE_WHEEL_NAME_ARG="--repo_env=WHEEL_NAME=tensorflow" |
| 40 | +TFCI_OUTPUT_DIR=build_output |
| 41 | +TFCI_FIND_BIN=C:/tools/msys64/usr/bin/find.exe |
| 42 | +TFCI_LIB_SUFFIX="-cpu-windows-x86_64" |
| 43 | +# auditwheel is not supported for Windows |
| 44 | +TFCI_WHL_AUDIT_ENABLE=0 |
| 45 | +TFCI_WHL_AUDIT_PLAT=0 |
| 46 | +# Tests are extremely slow at the moment |
| 47 | +TFCI_WHL_BAZEL_TEST_ENABLE=0 |
| 48 | +TFCI_WHL_SIZE_LIMIT=450M |
| 49 | +TFCI_WHL_SIZE_LIMIT_ENABLE=1 |
| 50 | +TFCI_WHL_IMPORT_TEST_ENABLE=1 |
| 51 | +TFCI_PYTHON_VERIFY_PIP_INSTALL_ARGS="" |
0 commit comments