Skip to content

Commit

Permalink
wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
zqfang committed May 8, 2024
1 parent 8509f0b commit 7e809e3
Showing 1 changed file with 24 additions and 25 deletions.
49 changes: 24 additions & 25 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,19 @@ jobs:
runs-on: ubuntu-latest
# needs: ["build_wheels"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: '3.8'
python-version: '3.10'
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Install deps
run: pip install -U twine setuptools-rust
- name: Build sdist
run: python setup.py sdist
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
path: ./dist/*
- name: Upload to PyPI
Expand All @@ -62,13 +62,13 @@ jobs:
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: '3.8'
python-version: '3.10'
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Install cibuildwheel
run: |
python -m pip install cibuildwheel==2.16.5 twine wheel
python -m pip install cibuildwheel==2.17.0 twine wheel
- name: Build wheels
run: |
python -m cibuildwheel --output-dir wheelhouse
Expand All @@ -82,9 +82,9 @@ jobs:
CIBW_BEFORE_BUILD: pip install -U setuptools-rust
# CIBW_TEST_REQUIRES: numpy scipy pandas requests
# CIBW_TEST_COMMAND: python -m unittest discover {project}/tests/
- uses: actions/upload-artifact@v4
with:
path: ./wheelhouse/*.whl
# - uses: actions/upload-artifact@v4
# with:
# path: ./wheelhouse/*.whl
- name: Upload to PyPI
run: twine upload ./wheelhouse/*.whl
env:
Expand All @@ -102,7 +102,7 @@ jobs:
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: '3.8'
python-version: '3.10'
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
Expand All @@ -112,7 +112,7 @@ jobs:
platforms: all
- name: Install cibuildwheel
run: |
python -m pip install cibuildwheel==2.16.5 twine
python -m pip install cibuildwheel==2.17.0 twine
- name: Build wheels
run: |
python -m cibuildwheel --output-dir wheelhouse
Expand All @@ -127,9 +127,9 @@ jobs:
# CIBW_TEST_REQUIRES: numpy scipy pandas requests
# CIBW_TEST_COMMAND: python -m unittest discover {project}/tests/
CIBW_ARCHS_LINUX: aarch64
- uses: actions/upload-artifact@v4
with:
path: ./wheelhouse/*.whl
# - uses: actions/upload-artifact@v4
# with:
# path: ./wheelhouse/*.whl
- name: Upload to PyPI
run: twine upload ./wheelhouse/*.whl
env:
Expand All @@ -142,19 +142,19 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Build wheels
uses: joerick/cibuildwheel@v2.16.5
uses: joerick/cibuildwheel@v2.17.0
env:
CIBW_BEFORE_ALL: rustup target add aarch64-apple-darwin
CIBW_ARCHS_MACOS: arm64 universal2
CIBW_BEFORE_BUILD: pip install -U setuptools-rust
CIBW_ENVIRONMENT: CARGO_BUILD_TARGET="aarch64-apple-darwin" PYO3_CROSS_LIB_DIR="/Library/Frameworks/Python.framework/Versions/$(python -c 'import sys; print(str(sys.version_info[0])+"."+str(sys.version_info[1]))')/lib/python$(python -c 'import sys; print(str(sys.version_info[0])+"."+str(sys.version_info[1]))')"
- uses: actions/upload-artifact@v4
with:
path: ./wheelhouse/*.whl
# - uses: actions/upload-artifact@v4
# with:
# path: ./wheelhouse/*.whl
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: '3.8'
python-version: '3.10'
- name: Install twine
run: |
python -m pip install twine
Expand All @@ -172,18 +172,17 @@ jobs:
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: '3.8'
python-version: '3.10'
architecture: 'x86'
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
target: i686-pc-windows-msvc
default: true
- name: Force win32 rust
run: rustup default stable-i686-pc-windows-msvc
- name: Install cibuildwheel
run: |
python -m pip install cibuildwheel==2.16.5 twine
python -m pip install cibuildwheel==2.17.0 twine
- name: Build wheels
run: |
python -m cibuildwheel --output-dir wheelhouse
Expand All @@ -193,9 +192,9 @@ jobs:
CIBW_BEFORE_BUILD: pip install -U setuptools-rust
# CIBW_TEST_REQUIRES: numpy scipy pandas requests
# CIBW_TEST_COMMAND: python -m unittest discover {project}/tests/
- uses: actions/upload-artifact@v4
with:
path: ./wheelhouse/*.whl
# - uses: actions/upload-artifact@v4
# with:
# path: ./wheelhouse/*.whl
- name: Upload to PyPI
run: twine upload ./wheelhouse/*.whl
env:
Expand Down

0 comments on commit 7e809e3

Please sign in to comment.