Skip to content

Commit

Permalink
Another OSX build test
Browse files Browse the repository at this point in the history
  • Loading branch information
lpossner committed Jul 17, 2024
1 parent 3b7a4ce commit 28fa77b
Showing 1 changed file with 24 additions and 13 deletions.
37 changes: 24 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,27 +122,38 @@ jobs:
run: |
brew install gcc@13
python -m pip install --upgrade pip
pip install Cython matplotlib seaborn cibuildwheel twine
pip install Cython matplotlib seaborn setuptools wheel delocate twine
pip install -r requirements.txt
CC=gcc-13 CXX=g++-13 pip install .
# - name: Install dependencies
# run: |
# brew install gcc@13
# python -m pip install --upgrade pip
# pip install Cython matplotlib seaborn cibuildwheel twine
# pip install -r requirements.txt
# CC=gcc-13 CXX=g++-13 pip install .
# - name: Test with unittest
# run: |
# cd tests
# python -m unittest
# cd ..
- name: Build with cibuildwheel
# - name: Build with cibuildwheel
# run: |
# python -m cibuildwheel --output-dir wheelhouse
# ls wheelhouse/
# env:
# # MACOSX_DEPLOYMENT_TARGET: "10.11"
# CIBW_BEFORE_BUILD: "pip install numpy"
# # CIBW_ARCHS_MACOS: x86_64
# CIBW_BUILD: ${{ matrix.cibw-string }}
# CIBW_REPAIR_WHEEL_COMMAND: "delocate-listdeps {wheel} && delocate-wheel --require-archs {delocate_archs} --require-target-macos-version 10.14 -w {dest_dir} -v {wheel}"
# # CIBW_REPAIR_WHEEL_COMMAND: ""
# CC: gcc-13
# CXX: g++-13
- name: Build on GitHub runner
run: |
python -m cibuildwheel --output-dir wheelhouse
ls wheelhouse/
env:
# MACOSX_DEPLOYMENT_TARGET: "10.11"
CIBW_BEFORE_BUILD: "pip install numpy"
# CIBW_ARCHS_MACOS: x86_64
CIBW_BUILD: ${{ matrix.cibw-string }}
CIBW_REPAIR_WHEEL_COMMAND: "delocate-listdeps {wheel} && delocate-wheel --require-archs {delocate_archs} --require-target-macos-version 10.14 -w {dest_dir} -v {wheel}"
# CIBW_REPAIR_WHEEL_COMMAND: ""
CC: gcc-13
CXX: g++-13
CC=gcc-13 CXX=g++-13 python setup.py bdist_wheel
delocate-listdeps dist/*.whl && delocate-wheel -w wheelhouse -v dist/*.whl
- name: Upload with twine
if: "contains(github.event.head_commit.message, 'PyPI')"
run: |
Expand Down

0 comments on commit 28fa77b

Please sign in to comment.