Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add mac build #1

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ name: Build
on:
pull_request:
branches:
- "**"
- master

jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# os: [ubuntu-latest, macos-13, macos-14] currently only works on Linux
os: [ubuntu-latest]
os: [ubuntu-latest, macos-13, macos-14]

steps:
- name: Checkout the repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy_test_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Test PyPI deploy
on:
push:
branches:
- "**"
- master

jobs:
generate_version:
Expand Down
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,13 @@ project(

add_link_options(-lgmp)

add_subdirectory(src/swisspair_cpp)
# macos stuff
include_directories(/opt/homebrew/include)
link_directories(/opt/homebrew/lib)

add_subdirectory(src/swisspair_cpp/gmpwrap)
add_subdirectory(src/swisspair_cpp/Minimum-Cost-Perfect-Matching)
add_subdirectory(src/swisspair_cpp)

# Find the module development requirements (requires FindPython from 3.17 or
# scikit-build-core's built-in backport)
Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,8 @@ requires=[]
before-all = """
yum -y install gmp-devel || apk add gmp-dev
"""

[tool.cibuildwheel.macos]
before-all = """
brew install gmp pkg-config
"""
2 changes: 1 addition & 1 deletion src/swisspair_cpp
Loading