forked from ibmdb/python-ibmdb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
17 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,6 @@ jobs: | |
uses: pypa/[email protected] | ||
env: | ||
CIBW_BUILD: "*-win_amd64" | ||
CIBW_SKIP: "cp36-* pp*" | ||
- uses: actions/[email protected] | ||
with: | ||
name: ibmdb-wheels64-${{ matrix.os }} | ||
|
@@ -41,7 +40,6 @@ jobs: | |
uses: pypa/[email protected] | ||
env: | ||
CIBW_BUILD: "*-win32" | ||
CIBW_SKIP: "cp36-* pp*" | ||
- uses: actions/[email protected] | ||
with: | ||
name: ibmdb-wheels32-${{ matrix.os }} | ||
|
@@ -59,7 +57,7 @@ jobs: | |
uses: pypa/[email protected] | ||
env: | ||
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014 | ||
CIBW_SKIP: "cp36-* *-musllinux_* pp* *-*linux_{aarch64,ppc64le}" | ||
CIBW_SKIP: "*-musllinux_* *-*linux_{aarch64}" | ||
CIBW_REPAIR_WHEEL_COMMAND_LINUX: | ||
auditwheel repair | ||
--exclude libdb2.so.1 | ||
|
@@ -84,30 +82,24 @@ jobs: | |
steps: | ||
- name: Checkout repository | ||
uses: actions/[email protected] | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.12' | ||
|
||
- name: Set macOS deployment target | ||
run: echo "MACOSX_DEPLOYMENT_TARGET=14.0" >> $GITHUB_ENV | ||
uses: pypa/[email protected] | ||
|
||
- name: Install build dependencies | ||
run: | | ||
pip install --upgrade pip | ||
pip install cibuildwheel delocate build | ||
- name: Build the wheel for macOS | ||
env: | ||
CIBW_SKIP: "cp36-* cp37-* pp36-* pp37-*" | ||
CIBW_SKIP: "cp37-* cp38-*" | ||
CIBW_ARCHS_MACOS: "arm64" | ||
run: | | ||
cibuildwheel --platform macos --output-dir dist | ||
MACOSX_DEPLOYMENT_TARGET: 14.0 | ||
|
||
- name: Upload sdist | ||
uses: actions/[email protected] | ||
with: | ||
name: ibmdb-wheelsarm64 | ||
path: dist/*.whl | ||
path: wheelhouse/*.whl | ||
|
||
build_wheels_macos_x86: | ||
name: Build wheels for macOS x86_64 | ||
|
@@ -122,15 +114,12 @@ jobs: | |
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install cibuildwheel # Install cibuildwheel to build the wheels | ||
- name: Set macOS deployment target | ||
run: echo "MACOSX_DEPLOYMENT_TARGET=10.15" >> $GITHUB_ENV | ||
pip install cibuildwheel delocate build | ||
- name: Build wheels with cibuildwheel | ||
run: | | ||
CIBW_ARCHS_MACOS="${{ matrix.architecture }}" | ||
python -m cibuildwheel --platform macos --output-dir ./wheelhouse | ||
env: | ||
CIBW_BUILD: "*-x86_64" | ||
CIBW_ARCHS_MACOS: "x86_64" | ||
MACOSX_DEPLOYMENT_TARGET: 10.15 | ||
|
||
- name: Upload wheels as artifacts | ||
uses: actions/[email protected] | ||
|
@@ -172,7 +161,7 @@ jobs: | |
|
||
|
||
upload_pypi: | ||
needs: [build_sdist,build_wheels_linux, build_wheels_windows_64,build_wheels_windows_32, build_macos_arm64_wheels, build_wheels_macos_x86] | ||
needs: [build_wheels_windows_64, build_wheels_windows_32, build_wheels_linux, build_macos_arm64_wheel, build_wheels_macos_x86, build_sdist] | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[build-system] | ||
requires = ["setuptools"] | ||
build-backend = "setuptools.build_meta" | ||
[tool.cibuildwheel.macos] | ||
[tool.cibuildwheel.macos] | ||
repair-wheel-command = "delocate-wheel --ignore-missing-dependencies --require-archs {delocate_archs} -w {dest_dir} -v {wheel}" | ||
skip = "cp36-macosx_x86_64" | ||
skip = "cp36-* pp*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters