Skip to content

Commit

Permalink
add mac build
Browse files Browse the repository at this point in the history
  • Loading branch information
karlosss committed Oct 17, 2024
1 parent 4601278 commit 800d4be
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
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
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ project(
LANGUAGES CXX)

add_link_options(-lgmp)
include_directories(/opt/homebrew/include)

add_subdirectory(src/swisspair_cpp)
add_subdirectory(src/swisspair_cpp/gmpwrap)
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
"""

0 comments on commit 800d4be

Please sign in to comment.