File tree Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Original file line number Diff line number Diff line change 6666 ./install_requirements.sh > /dev/null
6767 cmake --preset ${{ matrix.preset }}
6868 cmake --build cmake-out --parallel
69+
70+ windows :
71+ uses : pytorch/test-infra/.github/workflows/windows_job.yml@main
72+ strategy :
73+ fail-fast : false
74+ matrix :
75+ preset : [pybind]
76+ with :
77+ job-name : build
78+ ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
79+ submodules : recursive
80+ timeout : 90
81+ script : |
82+ set -eux
83+
84+ conda create --yes --quiet -n et python=3.12
85+ conda activate et
86+
87+ ./install_requirements.sh > /dev/null
88+ cmake --preset ${{ matrix.preset }}
89+ cmake --build cmake-out --parallel
Original file line number Diff line number Diff line change @@ -67,12 +67,19 @@ if(NOT CMAKE_BUILD_TYPE)
6767endif ()
6868announce_configured_options(CMAKE_BUILD_TYPE )
6969
70+ if (WIN32 )
71+ if (CMAKE_CXX_COMPILER AND NOT CMAKE_CXX_COMPILER MATCHES ".*clang.*" )
72+ message (FATAL_ERROR "CMAKE_CXX_COMPILER must be set to clang on Windows" )
73+ endif ()
74+ endif ()
75+ announce_configured_options(CMAKE_C_COMPILER_ID)
76+ announce_configured_options(CMAKE_CXX_COMPILER_ID)
77+
7078if (NOT PYTHON_EXECUTABLE)
7179 resolve_python_executable()
7280endif ()
7381announce_configured_options(PYTHON_EXECUTABLE)
7482
75- announce_configured_options(CMAKE_CXX_COMPILER_ID)
7683announce_configured_options(CMAKE_TOOLCHAIN_FILE)
7784announce_configured_options(BUCK2)
7885
You can’t perform that action at this time.
0 commit comments