File tree Expand file tree Collapse file tree 2 files changed +12
-13
lines changed Expand file tree Collapse file tree 2 files changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -72,24 +72,17 @@ jobs:
72
72
strategy :
73
73
fail-fast : false
74
74
matrix :
75
- preset : [pybind]
75
+ preset : [pybind, llm ]
76
76
with :
77
77
job-name : build
78
78
ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
79
79
submodules : recursive
80
80
timeout : 90
81
81
script : |
82
82
set -eux
83
- conda init powershell
84
- powershell -Command "& {
85
- \$ErrorActionPreference = 'Stop'
86
- Set-PSDebug -Trace 1
83
+ conda create --yes --quiet -n et python=3.12
84
+ conda activate et
87
85
88
- conda create --yes --quiet -n et python=3.12
89
- conda activate et
90
-
91
- python install_requirements.py
92
- cmake --preset ${{ matrix.preset }}
93
- \$numCores = [System.Environment]::GetEnvironmentVariable('NUMBER_OF_PROCESSORS') - 1
94
- cmake --build cmake-out -j \$numCores
95
- }"
86
+ ./install_requirements.sh
87
+ cmake -G "Visual Studio 17 2022" -T ClangCL --preset ${{ matrix.preset }}
88
+ cmake --build cmake-out -j$(( $(nproc) - 1 ))
Original file line number Diff line number Diff line change @@ -72,6 +72,12 @@ if(NOT PYTHON_EXECUTABLE)
72
72
endif ()
73
73
announce_configured_options(PYTHON_EXECUTABLE)
74
74
75
+ if (WIN32 )
76
+ if (NOT "${CMAKE_GENERATOR_TOOLSET} " STREQUAL "" AND NOT CMAKE_GENERATOR_TOOLSET MATCHES "Clang" )
77
+ message (FATAL_ERROR "Windows builds require Clang compiler. Current CMAKE_GENERATOR_TOOLSET: ${CMAKE_GENERATOR_TOOLSET} " )
78
+ endif ()
79
+ endif ()
80
+
75
81
announce_configured_options(CMAKE_CXX_COMPILER_ID)
76
82
announce_configured_options(CMAKE_TOOLCHAIN_FILE)
77
83
announce_configured_options(BUCK2)
You can’t perform that action at this time.
0 commit comments