mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-07-29 09:29:46 +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
|
# Read about options here https://cibuildwheel.readthedocs.io/en/stable/options
|
||||||
env:
|
env:
|
||||||
CIBW_ARCHS: arm64
|
CIBW_ARCHS: arm64
|
||||||
CIBW_BUILD: cp39-macosx_arm64
|
|
||||||
# This allows substitution within setup.py
|
# This allows substitution within setup.py
|
||||||
PACKAGE_NAME: psycopg2-binary
|
PACKAGE_NAME: psycopg2-binary
|
||||||
|
|
||||||
- run: |
|
|
||||||
ls -l wheelhouse
|
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user