diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 011561bd7..13b3d7e71 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -286,8 +286,16 @@ jobs: export CXXFLAGS="-I${xcode_prefix}/usr/include -I${brew_prefix}/include -O3 -std=c++17 -flto=auto -Xpreprocessor -fopenmp" echo "CXXFLAGS=${CXXFLAGS}" >> "$GITHUB_ENV" + - name: Set up MSVC developer environment (Windows only) + if: startsWith(matrix.os, 'windows-') + uses: microsoft/setup-msbuild@6fb02220983dee41ce7ae257b6f4d8f9bf5ed4ce # v2 + - name: Build the Python bindings shell: bash + env: + # Use Ninja on Windows: it is pre-installed on GitHub runners and does + # not require a Developer Command Prompt the way NMake does. + CMAKE_GENERATOR: ${{startsWith(matrix.os, 'windows-') && 'Ninja' || ''}} run: | mkdir -p build cd build diff --git a/pyproject.toml b/pyproject.toml index 3d5e9119d..5b0cd8afc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -126,6 +126,7 @@ dependencies = {file = ["requirements.txt"] } [tool.cibuildwheel] build = "cp310-* cp311-* cp312-* cp313-* cp314-*" +skip = "*musllinux*" dependency-versions = "latest" enable = ["cpython-prerelease"] environment.PIP_PREFER_BINARY = "1" @@ -157,7 +158,6 @@ delocate-wheel --verbose --require-archs {delocate_archs} -w {dest_dir} {wheel} [tool.cibuildwheel.linux] manylinux-x86_64-image = "manylinux2014" manylinux-i686-image = "manylinux2014" -skip = "*musllinux*" [tool.black] target-version = ['py310', 'py311', 'py312', 'py313', 'py314']