File tree Expand file tree Collapse file tree 3 files changed +40
-12
lines changed Expand file tree Collapse file tree 3 files changed +40
-12
lines changed Original file line number Diff line number Diff line change 6
6
branches :
7
7
- main
8
8
- release/*
9
+ paths :
10
+ - .github/workflows/build-presets.yml
9
11
workflow_dispatch :
10
12
11
13
concurrency :
@@ -109,7 +111,7 @@ jobs:
109
111
strategy :
110
112
fail-fast : false
111
113
matrix :
112
- preset : [pybind]
114
+ preset : [pybind, windows ]
113
115
with :
114
116
job-name : build
115
117
ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
@@ -119,24 +121,14 @@ jobs:
119
121
set -eux
120
122
conda init powershell
121
123
powershell -Command "& {
122
- Set-PSDebug -Trace 1
123
124
\$ErrorActionPreference = 'Stop'
124
- \$PSNativeCommandUseErrorActionPreference = \$true
125
+ Set-PSDebug -Trace 2
125
126
126
127
conda create --yes --quiet -n et python=3.12
127
128
conda activate et
128
129
129
130
python install_requirements.py
130
131
cmake --preset ${{ matrix.preset }}
131
- if (\$LASTEXITCODE -ne 0) {
132
- Write-Host "CMake configuration was unsuccessful. Exit code: \$LASTEXITCODE."
133
- exit \$LASTEXITCODE
134
- }
135
-
136
132
\$numCores = [System.Environment]::GetEnvironmentVariable('NUMBER_OF_PROCESSORS') - 1
137
133
cmake --build cmake-out -j \$numCores
138
- if (\$LASTEXITCODE -ne 0) {
139
- Write-Host "CMake build was unsuccessful. Exit code: \$LASTEXITCODE."
140
- exit \$LASTEXITCODE
141
- }
142
134
}"
Original file line number Diff line number Diff line change 120
120
]
121
121
}
122
122
},
123
+ {
124
+ "name" : " windows" ,
125
+ "displayName" : " Build ExecuTorch for Windows" ,
126
+ "inherits" : [" common" ],
127
+ "cacheVariables" : {
128
+ "CMAKE_SYSTEM_NAME" : " Windows" ,
129
+ "EXECUTORCH_BUILD_PRESET_FILE" : " ${sourceDir}/tools/cmake/preset/windows.cmake"
130
+ },
131
+ "toolset" : " ClangCL" ,
132
+ "condition" : {
133
+ "lhs" : " ${hostSystemName}" ,
134
+ "type" : " equals" ,
135
+ "rhs" : " Windows"
136
+ }
137
+ },
123
138
{
124
139
"name" : " zephyr" ,
125
140
"displayName" : " Build ExecuTorch for Zephyr RTOS" ,
Original file line number Diff line number Diff line change
1
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ # All rights reserved.
3
+ #
4
+ # This source code is licensed under the BSD-style license found in the
5
+ # LICENSE file in the root directory of this source tree.
6
+
7
+
8
+ # keep sorted
9
+ set_overridable_option (EXECUTORCH_BUILD_EXTENSION_DATA_LOADER ON )
10
+ set_overridable_option (EXECUTORCH_BUILD_EXTENSION_EVALUE_UTIL ON )
11
+ set_overridable_option (EXECUTORCH_BUILD_EXTENSION_FLAT_TENSOR ON )
12
+ set_overridable_option (EXECUTORCH_BUILD_EXTENSION_MODULE ON )
13
+ set_overridable_option (EXECUTORCH_BUILD_EXTENSION_RUNNER_UTIL ON )
14
+ set_overridable_option (EXECUTORCH_BUILD_EXTENSION_TENSOR ON )
15
+
16
+ # Below options are not yet buildable on Windows, but should be.
17
+ set (EXECUTORCH_BUILD_PORTABLE_OPS OFF CACHE BOOL "" )
18
+ #set_overridable_option(EXECUTORCH_BUILD_EXECUTOR_RUNNER ON)
19
+ #set_overridable_option(EXECUTORCH_BUILD_KERNELS_OPTIMIZED ON)
20
+ #set_overridable_option(EXECUTORCH_BUILD_KERNELS_QUANTIZED ON)
21
+ #set_overridable_option(EXECUTORCH_BUILD_XNNPACK ON)
You can’t perform that action at this time.
0 commit comments