-
Notifications
You must be signed in to change notification settings - Fork 161
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
1 parent
d66f697
commit a9ad89e
Showing
2 changed files
with
52 additions
and
25 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
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 |
---|---|---|
|
@@ -346,39 +346,36 @@ jobs: | |
* ${{ steps.hashes.outputs.asset_name_15 }} : `${{ steps.hashes.outputs.asset_hash_15 }}` | ||
build_wheels: | ||
name: Build Python | ||
needs: versioning | ||
name: Build Python ${{ matrix.python-version }} for ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
needs: versioning | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-22.04, macOS-11, windows-2022] | ||
|
||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
python-version: ["37", "38", "39", "310", "311", "312"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: "main" | ||
- uses: actions/setup-python@v3 | ||
|
||
- name: Setup Docker | ||
if: matrix.os == 'ubuntu-22.04' | ||
uses: crazy-max/[email protected] | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
version: 23.0.1 | ||
|
||
python-version: 3.x | ||
- name: Setup QEMU | ||
if: matrix.os == 'ubuntu-22.04' | ||
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 | ||
|
@@ -392,17 +389,20 @@ jobs: | |
|
||
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 | ||
|
||
publish_javascript: | ||
name: Publish JavaScript | ||
needs: versioning | ||
|