Skip to content

DEV: Support building all mac/linux wheels #124

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

Merged
merged 7 commits into from
Dec 4, 2024
Merged
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
15 changes: 9 additions & 6 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@ jobs:
- os: macos-14
platform_id: macosx_arm64

# MacOS universal2 (not necessary, but matching
# those available to download on iqtree.org)
- os: macos-14
platform_id: macosx_universal2


steps:
- uses: "actions/checkout@v4"
with:
Expand All @@ -39,6 +33,15 @@ jobs:
uses: docker/setup-qemu-action@v3
with:
platforms: arm64

- name: Set macOS Deployment Target
if: ${{startsWith(matrix.os, 'macos')}}
run: |
if [[ "${{ matrix.os }}" == "macos-13" ]]; then
echo "MACOSX_DEPLOYMENT_TARGET=13.0" >> $GITHUB_ENV
elif [[ "${{ matrix.os }}" == "macos-14" ]]; then
echo "MACOSX_DEPLOYMENT_TARGET=14.0" >> $GITHUB_ENV
fi

- name: Build wheels
uses: pypa/cibuildwheel@v2.22.0
Expand Down
2 changes: 1 addition & 1 deletion build_tools/before_all_mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ export LDFLAGS="-L$(brew --prefix libomp)/lib"
export CPPFLAGS="-I$(brew --prefix libomp)/include"
export CXXFLAGS="-I$(brew --prefix libomp)/include"

bash build_tools/build_iqtree.sh
bash build_tools/build_iqtree.sh
Loading