Skip to content

Commit

Permalink
Try to enable windows
Browse files Browse the repository at this point in the history
  • Loading branch information
robomics committed Jul 30, 2023
1 parent e158dd5 commit bc4d783
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
- uses: actions/checkout@v3
Expand All @@ -81,15 +81,17 @@ jobs:
with:
platforms: all

- uses: pypa/[email protected]
- name: Build wheels
uses: pypa/[email protected]
if: ${{ github.event_name != 'pull_request' }}
env:
CIBW_ARCHS_LINUX: x86_64
CIBW_ARCHS_MACOS: x86_64 arm64
CIBW_ARCHS_WINDOWS: AMD64
CIBW_PRERELEASE_PYTHONS: "1"

- uses: pypa/[email protected]
- name: Build wheels (PR)
uses: pypa/[email protected]
if: ${{ github.event_name == 'pull_request' }}
env:
CIBW_ARCHS_LINUX: x86_64
Expand Down
12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,22 @@ testpaths = ["tests"]

[tool.cibuildwheel]
# Setuptools bug causes collision between pypy and cpython artifacts
before-build = [
before-all = [
"rm -rf '{project}/build'",
"pip install 'conan>=2'",
"pip3 install conan==2",
"conan profile detect --force",
'cd {project}/devel/cibw/linux && ./cibw_setup_deps.sh'
"cd '{project}/devel/cibw/linux' && ./cibw_setup_deps.sh"
]
environment = { CMAKE_ARGS = '-DCMAKE_PREFIX_PATH=/usr/local/share' }
environment-pass = ["CMAKE_ARGS"]

[tool.cibuildwheel.macos]
# Setuptools bug causes collision between pypy and cpython artifacts
before-build = [
before-all = [
"rm -rf '{project}/build'",
"pip install 'conan>=2'",
"pip3 install conan==2",
"sudo conan profile detect --force",
'cd {project}/devel/cibw/macos && sudo ./cibw_setup_deps.sh'
"cd '{project}/devel/cibw/macos' && sudo ./cibw_setup_deps.sh"
]

environment = { CMAKE_ARGS = '-DCMAKE_PREFIX_PATH=/usr/local/share', MACOSX_DEPLOYMENT_TARGET = '10.15' }
Expand Down

0 comments on commit bc4d783

Please sign in to comment.