mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-01-31 09:24:07 +03:00
ci(windows): create the psycopg2-binary package in Github
This commit is contained in:
parent
fa24c922e7
commit
bb52bcf769
11
.github/workflows/packages.yml
vendored
11
.github/workflows/packages.yml
vendored
|
@ -193,6 +193,7 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
arch: [win_amd64]
|
arch: [win_amd64]
|
||||||
pyver: [cp38, cp39, cp310, cp311, cp312, cp313]
|
pyver: [cp38, cp39, cp310, cp311, cp312, cp313]
|
||||||
|
package_name: [psycopg2, psycopg2-binary]
|
||||||
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
|
@ -223,9 +224,11 @@ jobs:
|
||||||
core.addPath(path.join(process.env.VCPKG_INSTALLATION_ROOT, 'installed/x64-windows-release/lib'));
|
core.addPath(path.join(process.env.VCPKG_INSTALLATION_ROOT, 'installed/x64-windows-release/lib'));
|
||||||
core.addPath(path.join(process.env.VCPKG_INSTALLATION_ROOT, 'installed/x64-windows-release/bin'));
|
core.addPath(path.join(process.env.VCPKG_INSTALLATION_ROOT, 'installed/x64-windows-release/bin'));
|
||||||
|
|
||||||
# TODO: patch to psycopg2-binary
|
- name: Create the binary package source tree
|
||||||
# - name: Create the binary package source tree
|
run: >-
|
||||||
# run: python3 ./tools/build/copy_to_binary.py
|
sed -i 's/^setup(name="psycopg2"/setup(name="${{matrix.package_name}}"/'
|
||||||
|
setup.py
|
||||||
|
if: ${{ matrix.package_name != 'psycopg2' }}
|
||||||
|
|
||||||
- name: Build wheels
|
- name: Build wheels
|
||||||
uses: pypa/cibuildwheel@v2.22.0
|
uses: pypa/cibuildwheel@v2.22.0
|
||||||
|
@ -249,5 +252,5 @@ jobs:
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: windows-${{matrix.pyver}}-${{matrix.arch}}
|
name: windows-${{ matrix.package_name }}-${{matrix.pyver}}-${{matrix.arch}}
|
||||||
path: ./wheelhouse/*.whl
|
path: ./wheelhouse/*.whl
|
||||||
|
|
Loading…
Reference in New Issue
Block a user