Skip to content

Commit

Permalink
build win64 wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj committed Jul 5, 2023
1 parent dd6c1b4 commit a42afe7
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 2 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/build-wheels-win64.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: build-wheels-win64

on:
push:
branches:
- win64-wheel
tags:
- '*'

concurrency:
group: build-wheels-win64-${{ github.ref }}
cancel-in-progress: true

jobs:
build_wheels:
name: Build wheels for Win64 on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest]

steps:
- uses: actions/checkout@v2

# see https://cibuildwheel.readthedocs.io/en/stable/changelog/
# for a list of versions
- name: Build wheels
uses: pypa/cibuildwheel@v2.11.4
env:
CIBW_SKIP: "*-win32"
CIBW_BUILD_VERBOSITY: 3

- name: Display wheels
shell: bash
run: |
ls -lh ./wheelhouse/
ls -lh ./wheelhouse/*.whl
- uses: actions/upload-artifact@v2
with:
path: ./wheelhouse/*.whl

- name: Publish wheels to PyPI
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
shell: bash
run: |
python3 -m pip install --upgrade pip
python3 -m pip install wheel twine setuptools
twine upload ./wheelhouse/*.whl
4 changes: 2 additions & 2 deletions .github/workflows/build-wheels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
os: [ubuntu-latest, macos-latest]

steps:
- uses: actions/checkout@v2
Expand All @@ -28,7 +28,7 @@ jobs:
- name: Build wheels
uses: pypa/cibuildwheel@v2.11.4
env:
CIBW_SKIP: "cp27-* cp35-* *-win32 pp* *-musllinux*"
CIBW_SKIP: "cp27-* cp35-* pp* *-musllinux*"
CIBW_BUILD_VERBOSITY: 3

- name: Display wheels
Expand Down

0 comments on commit a42afe7

Please sign in to comment.