File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change 26
26
with :
27
27
python-version : 3.12
28
28
29
- - name : Get number of cores on Windows
30
- id : get_num_cores
31
- shell : python
32
- run : |
33
- from os import environ, cpu_count
34
- num_cpus = cpu_count()
35
- output_file = environ['GITHUB_OUTPUT']
36
- with open(output_file, "a", encoding="utf-8") as output_stream:
37
- output_stream.write(f"count={num_cpus}\n")
38
-
39
29
- name : Build wheels on Windows
40
30
run : pipx run cibuildwheel --output-dir wheelhouse
41
31
env :
46
36
VCPKG_FEATURE_FLAGS=manifests,registries
47
37
CMAKE_GENERATOR="Visual Studio 17 2022"
48
38
CMAKE_GENERATOR_PLATFORM=x64
49
- CMAKE_BUILD_PARALLEL_LEVEL=${{ steps.get_num_cores.outputs.count }}
50
39
CIBW_ARCHS : AMD64
51
40
CIBW_BEFORE_BUILD : python -m pip install setuptools delvewheel # skip CasADi and CMake
52
41
CIBW_REPAIR_WHEEL_COMMAND : delvewheel repair --add-path C:/Windows/System32 -w {dest_dir} {wheel}
You can’t perform that action at this time.
0 commit comments