mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-07-29 01:19:45 +03:00
Use CIBW_REPAIR again
This commit is contained in:
parent
d780f646fb
commit
32058519a6
39
.github/workflows/m1.yml
vendored
Normal file
39
.github/workflows/m1.yml
vendored
Normal file
|
@ -0,0 +1,39 @@
|
|||
---
|
||||
name: Build packages
|
||||
on:
|
||||
- pull_request
|
||||
|
||||
|
||||
jobs:
|
||||
# This only uploads the arm64 wheels for Apple M1 Silicon usage
|
||||
build-macos-arm64:
|
||||
runs-on: macos-11.0
|
||||
name: "build-macos (3.8-3.10, arm64)"
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Start postgresql service
|
||||
# This skips updating brew when installing a package
|
||||
env:
|
||||
HOMEBREW_NO_AUTO_UPDATE: 1
|
||||
run: |
|
||||
brew services start postgresql
|
||||
|
||||
# This builds all possible Python versions (currently, 3.8 to 3.10)
|
||||
- uses: pypa/cibuildwheel@v2.1.1
|
||||
# Read about options here https://cibuildwheel.readthedocs.io/en/stable/options
|
||||
env:
|
||||
CIBW_ARCHS: arm64
|
||||
# XXX: temp: faster
|
||||
CIBW_BUILD: cp39-macosx_arm64
|
||||
CIBW_REPAIR_WHEEL_COMMAND: "delocate-listdeps {wheel} && delocate-wheel --require-archs {delocate_archs} -w {dest_dir} {wheel}"
|
||||
# This allows substitution within setup.py
|
||||
PACKAGE_NAME: psycopg2-binary
|
||||
|
||||
- run: |
|
||||
ls -l
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: packages_macos_arm64
|
||||
path: ./wheelhouse/*.whl
|
4
.github/workflows/packages.yml
vendored
4
.github/workflows/packages.yml
vendored
|
@ -156,13 +156,9 @@ jobs:
|
|||
# Read about options here https://cibuildwheel.readthedocs.io/en/stable/options
|
||||
env:
|
||||
CIBW_ARCHS: arm64
|
||||
CIBW_BUILD: cp39-macosx_arm64
|
||||
# This allows substitution within setup.py
|
||||
PACKAGE_NAME: psycopg2-binary
|
||||
|
||||
- run: |
|
||||
ls -l wheelhouse
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
|
|
Loading…
Reference in New Issue
Block a user