Skip to content

Commit

Permalink
chore: update build_wheel action (capytaine#597)
Browse files Browse the repository at this point in the history
  • Loading branch information
mancellin authored Sep 17, 2024
1 parent 0c2e53b commit c5658dd
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 9 deletions.
34 changes: 26 additions & 8 deletions .github/workflows/build_wheels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,35 @@ jobs:
version: '13'

- name: Build wheels
uses: pypa/[email protected]
if: matrix.os == 'ubuntu-20.04'
uses: pypa/[email protected]
env:
CIBW_SKIP: "pp* *i686* *musllinux* *win32*"
# Package the DLL dependencies in the wheel for windows (done by default for the other platforms).
# delvewheel cannot mangle the libraries, stripping does not work.
CIBW_SKIP: "pp* *i686* *musllinux*"
# As of Sept 2024, Python 3.13 is troublesome because of lack of Pandas for Python 3.13.

- name: Build wheels
if: matrix.os == 'macos-12'
uses: pypa/[email protected]
env:
CIBW_SKIP: "pp* cp313*"
CIBW_ENVIRONMENT: MACOSX_DEPLOYMENT_TARGET=12.0

- name: Build wheels
if: matrix.os == 'macos-14'
uses: pypa/[email protected]
env:
CIBW_SKIP: "pp* cp313*"
CIBW_ENVIRONMENT: MACOSX_DEPLOYMENT_TARGET=14.0

- name: Build wheels
if: matrix.os == 'windows-2019'
uses: pypa/[email protected]
env:
CIBW_SKIP: "pp* cp313* *win32*"
CIBW_BEFORE_BUILD_WINDOWS: pip install delvewheel
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: "delvewheel show {wheel} && delvewheel repair -w {dest_dir} {wheel} --no-mangle-all"
# with:
# package-dir: .
# output-dir: wheelhouse
# config-file: "{package}/pyproject.toml"
# Package the DLL dependencies in the wheel for windows (done by default for the other platforms).
# delvewheel cannot mangle the libraries, stripping does not work.

- uses: actions/upload-artifact@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_new_commits.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Set up nox
uses: wntrblm/nox@2024.03.02
uses: wntrblm/nox@2024.04.15

- name: Run nox session
run: nox -s build_and_test_on_locked_env
Expand Down

0 comments on commit c5658dd

Please sign in to comment.