-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
16 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,19 +8,23 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-20.04, windows-2019, macos-10.15] | ||
os: | ||
- "ubuntu-22.04" | ||
- "macos-12" | ||
- "macos-14" | ||
- "windows-latest" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
fetch-depth: 0 | ||
- uses: pypa/cibuildwheel@v2.18.1 | ||
- uses: pypa/cibuildwheel@v2.19.0 | ||
env: | ||
CIBW_SKIP: "pp* *-win32 *-manylinux_i686" | ||
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014 | ||
CIBW_ARCHS_MACOS: x86_64 universal2 | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: binary-${{ matrix.os }} | ||
path: ./wheelhouse/*.whl | ||
|
||
build_sdist: | ||
|
@@ -33,14 +37,18 @@ jobs: | |
- uses: actions/setup-python@v5 | ||
name: Install Python | ||
with: | ||
python-version: "3.9" | ||
- name: Build sdist | ||
python-version: "3.10" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install -U pip | ||
python -m pip install -U build | ||
python -m build --sdist . | ||
python -m pip install -U build twine | ||
- name: Build sdist | ||
run: python -m build --sdist . | ||
- name: Check the sdist | ||
run: python -m twine check dist/*.tar.gz | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: sdist | ||
path: dist/*.tar.gz | ||
|
||
upload_pypi: | ||
|
@@ -50,9 +58,8 @@ jobs: | |
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: artifact | ||
path: dist | ||
|
||
merge-multiple: true | ||
- uses: pypa/[email protected] | ||
with: | ||
user: __token__ | ||
|