Skip to content

Commit 3fed7e3

Browse files
committed
Make: Upgrade CI
1 parent 9726523 commit 3fed7e3

File tree

3 files changed

+32
-37
lines changed

3 files changed

+32
-37
lines changed

.github/workflows/release.yml

Lines changed: 27 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -31,63 +31,60 @@ jobs:
3131

3232

3333
build_wheels:
34-
name: Build Wheels for ${{ matrix.os }}
34+
name: Build Python ${{ matrix.python-version }} for ${{ matrix.os }}
3535
runs-on: ${{ matrix.os }}
3636
needs: versioning
3737
strategy:
3838
matrix:
39-
os: [ubuntu-20.04, macOS-11, windows-2022]
40-
39+
os: [ubuntu-latest, macos-latest, windows-latest]
40+
python-version: ["39", "310", "311", "312"]
4141
steps:
42-
- uses: actions/checkout@v3
43-
with:
44-
ref: 'main'
45-
- uses: actions/setup-python@v3
46-
47-
- name: Setup Docker
48-
if: matrix.os != 'windows-2022'
49-
uses: crazy-max/[email protected]
42+
- uses: actions/checkout@v4
43+
- name: Set up Python
44+
uses: actions/setup-python@v5
5045
with:
51-
version: 23.0.1
52-
46+
python-version: 3.x
5347
- name: Setup QEMU
54-
if: matrix.os != 'windows-2022'
55-
uses: docker/[email protected]
56-
57-
- name: Install CIBuildWheel
48+
if: matrix.os == 'ubuntu-latest' # We only need QEMU for Linux builds
49+
uses: docker/setup-qemu-action@v3
50+
- name: Install cibuildwheel
5851
run: python -m pip install cibuildwheel
59-
6052
- name: Build wheels
61-
run: python -m cibuildwheel
62-
63-
- uses: actions/upload-artifact@v3
53+
run: cibuildwheel --output-dir wheelhouse
54+
env:
55+
CIBW_BUILD: cp${{ matrix.python-version }}-*
56+
- name: Upload wheels
57+
uses: actions/upload-artifact@v4
6458
with:
59+
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
6560
path: ./wheelhouse/*.whl
66-
67-
61+
overwrite: true
62+
6863
publish_python:
6964
name: Publish Python
70-
runs-on: ubuntu-20.04
7165
needs: build_wheels
66+
runs-on: ubuntu-20.04
7267
environment:
7368
name: pypi
74-
url: https://pypi.org/p/ucall
69+
url: https://pypi.org/p/stringzilla
7570
permissions:
7671
id-token: write
7772

7873
steps:
7974
- name: Download artifacts
80-
uses: actions/download-artifact@v3.0.2
75+
uses: actions/download-artifact@v4
8176
with:
82-
path: ./dist/
77+
# unpacks all CIBW artifacts into dist/
78+
pattern: cibw-*
79+
path: dist
80+
merge-multiple: true
8381

8482
- name: Publish to PyPi
8583
uses: pypa/gh-action-pypi-publish@release/v1
8684
with:
87-
packages_dir: ./dist/artifact
85+
packages-dir: dist
8886
verbose: true
89-
print_hash: true
90-
87+
print-hash: true
9188

9289
deploy_docs:
9390
name: Deploy Docs

pyproject.toml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ filterwarnings = ["error"]
1212
build-verbosity = 0
1313
before-build = [
1414
"rm -rf {project}/CMakeCache.txt {project}/build {project}/build_debug {project}/CMakeFiles.txt {project}/_deps",
15-
"mkdir -p build/ucall"
15+
"mkdir -p build/ucall",
1616
]
1717

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

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

3028
[tool.cibuildwheel.macos]
@@ -34,7 +32,7 @@ repair-wheel-command = "delocate-wheel --require-archs {delocate_archs} -w {dest
3432
[tool.cibuildwheel.windows]
3533
before-build = [
3634
"rd /s /q {project}\\CMakeCache.txt {project}\\build {project}\\build_debug {project}\\CMakeFiles.txt {project}\\_deps || echo Done",
37-
"md build\\ucall"
35+
"md build\\ucall",
3836
]
3937
archs = ["x86", "AMD64"]
40-
skip = ["*win32*", "pp*"]
38+
skip = ["*win32*", "pp*"]

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def run(self):
7979
name=__lib_name__,
8080
version=__version__,
8181

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

0 commit comments

Comments
 (0)