Skip to content

Commit

Permalink
Make: Upgrade CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ashvardanian committed Feb 19, 2024
1 parent 9726523 commit 3fed7e3
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 37 deletions.
57 changes: 27 additions & 30 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,63 +31,60 @@ jobs:


build_wheels:
name: Build Wheels for ${{ matrix.os }}
name: Build Python ${{ matrix.python-version }} for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
needs: versioning
strategy:
matrix:
os: [ubuntu-20.04, macOS-11, windows-2022]

os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["39", "310", "311", "312"]
steps:
- uses: actions/checkout@v3
with:
ref: 'main'
- uses: actions/setup-python@v3

- name: Setup Docker
if: matrix.os != 'windows-2022'
uses: crazy-max/[email protected]
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
version: 23.0.1

python-version: 3.x
- name: Setup QEMU
if: matrix.os != 'windows-2022'
uses: docker/[email protected]

- name: Install CIBuildWheel
if: matrix.os == 'ubuntu-latest' # We only need QEMU for Linux builds
uses: docker/setup-qemu-action@v3
- name: Install cibuildwheel
run: python -m pip install cibuildwheel

- name: Build wheels
run: python -m cibuildwheel

- uses: actions/upload-artifact@v3
run: cibuildwheel --output-dir wheelhouse
env:
CIBW_BUILD: cp${{ matrix.python-version }}-*
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl

overwrite: true

publish_python:
name: Publish Python
runs-on: ubuntu-20.04
needs: build_wheels
runs-on: ubuntu-20.04
environment:
name: pypi
url: https://pypi.org/p/ucall
url: https://pypi.org/p/stringzilla
permissions:
id-token: write

steps:
- name: Download artifacts
uses: actions/download-artifact@v3.0.2
uses: actions/download-artifact@v4
with:
path: ./dist/
# unpacks all CIBW artifacts into dist/
pattern: cibw-*
path: dist
merge-multiple: true

- name: Publish to PyPi
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages_dir: ./dist/artifact
packages-dir: dist
verbose: true
print_hash: true

print-hash: true

deploy_docs:
name: Deploy Docs
Expand Down
10 changes: 4 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ filterwarnings = ["error"]
build-verbosity = 0
before-build = [
"rm -rf {project}/CMakeCache.txt {project}/build {project}/build_debug {project}/CMakeFiles.txt {project}/_deps",
"mkdir -p build/ucall"
"mkdir -p build/ucall",
]

skip = ["*musllinux*", "*i686*", "pp*", "cp36-*", "cp37-*", "cp38-*"]
Expand All @@ -22,9 +22,7 @@ manylinux-x86_64-image = "manylinux_2_28"
manylinux-aarch64-image = "manylinux_2_28"

archs = ["x86_64", "aarch64"]
before-all = [
"yum install -y glibc-devel wget python3-devel"
]
before-all = ["yum install -y glibc-devel wget python3-devel"]
repair-wheel-command = "auditwheel repair --lib-sdir . -w {dest_dir} {wheel}"

[tool.cibuildwheel.macos]
Expand All @@ -34,7 +32,7 @@ repair-wheel-command = "delocate-wheel --require-archs {delocate_archs} -w {dest
[tool.cibuildwheel.windows]
before-build = [
"rd /s /q {project}\\CMakeCache.txt {project}\\build {project}\\build_debug {project}\\CMakeFiles.txt {project}\\_deps || echo Done",
"md build\\ucall"
"md build\\ucall",
]
archs = ["x86", "AMD64"]
skip = ["*win32*", "pp*"]
skip = ["*win32*", "pp*"]
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def run(self):
name=__lib_name__,
version=__version__,

author='Ashot Vardanian',
author='Ash Vardanian',
author_email='[email protected]',
url='https://github.com/unum-cloud/ucall',
description='Up to 100x Faster FastAPI. JSON-RPC with io_uring, SIMD-acceleration, and pure CPython bindings',
Expand Down

0 comments on commit 3fed7e3

Please sign in to comment.