-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update ciwheels.yml * new version * use 3.9 in tests (so it works with MacOS arm) * new wheel action * comment upload part (that was never triggered)
- Loading branch information
Showing
4 changed files
with
40 additions
and
35 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 |
---|---|---|
|
@@ -86,8 +86,8 @@ jobs: | |
# Why universal2 here? It's not included above in CIBW_BUILD | ||
CIBW_ARCHS_MACOS: "x86_64 arm64 universal2" | ||
CIBW_ENVIRONMENT_MACOS: "CMAKE_OSX_ARCHITECTURES=\"${{ matrix.os.cibw-arch == 'macosx_x86_64' && 'x86_64' || matrix.os.cibw-arch == 'macosx_arm64' && 'arm64' || matrix.os.cibw-arch == 'macosx_universal2' && 'arm64;x86_64' || '' }}\"" | ||
MACOSX_DEPLOYMENT_TARGET: 10.15 | ||
CIBW_PRERELEASE_PYTHONS: True | ||
MACOSX_DEPLOYMENT_TARGET: 10.16 | ||
# CIBW_PRERELEASE_PYTHONS: True | ||
|
||
|
||
# env: | ||
|
@@ -110,16 +110,20 @@ jobs: | |
- uses: actions/checkout@v3 | ||
with: | ||
submodules: 'recursive' | ||
|
||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
|
||
- uses: actions/setup-python@v4 | ||
name: Install Python | ||
with: | ||
python-version: '3.7' | ||
|
||
- name: Install cibuildwheel | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install cibuildwheel==2.13.1 | ||
# - uses: actions/setup-python@v4 | ||
# name: Install Python | ||
# with: | ||
# python-version: '3.7' | ||
|
||
# - name: Install cibuildwheel | ||
# run: | | ||
# python -m pip install --upgrade pip | ||
# python -m pip install cibuildwheel==2.16 | ||
|
||
# - name: Add build subdirectories to PATH | ||
# shell: pwsh | ||
|
@@ -160,9 +164,9 @@ jobs: | |
# run: | | ||
# python setup.py sdist -d wheelhouse --formats=gztar | ||
|
||
- name: Build wheels | ||
run: | | ||
python -m cibuildwheel --output-dir wheelhouse | ||
# - name: Build wheels | ||
# run: | | ||
# python -m cibuildwheel --output-dir wheelhouse | ||
|
||
|
||
# - name: Fix Windows wheels | ||
|
@@ -176,27 +180,28 @@ jobs: | |
# Upload binaries to github | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }} | ||
path: | | ||
./wheelhouse/*.whl | ||
./wheelhouse/*.tar.gz | ||
# # Push the resulting binaries to pypi on a tag starting with 'v' | ||
upload_pypi: | ||
needs: [build_wheels] | ||
runs-on: ubuntu-latest | ||
# upload to PyPI on every tag starting with 'v' | ||
# if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') | ||
# alternatively, to publish when a GitHub Release is created, use the following rule: | ||
if: github.event_name == 'release' && github.event.action == 'published' | ||
steps: | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: artifact | ||
path: dist | ||
|
||
- uses: pypa/[email protected] | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.pypi_password }} | ||
skip_existing: true | ||
# To test: repository_url: https://test.pypi.org/legacy/ | ||
# upload_pypi: | ||
# needs: [build_wheels] | ||
# runs-on: ubuntu-latest | ||
# # upload to PyPI on every tag starting with 'v' | ||
# # if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') | ||
# # alternatively, to publish when a GitHub Release is created, use the following rule: | ||
# if: github.event_name == 'release' && github.event.action == 'published' | ||
# steps: | ||
# - uses: actions/download-artifact@v3 | ||
# with: | ||
# name: artifact | ||
# path: dist | ||
|
||
# - uses: pypa/[email protected] | ||
# with: | ||
# user: __token__ | ||
# password: ${{ secrets.pypi_password }} | ||
# skip_existing: true | ||
# # To test: repository_url: https://test.pypi.org/legacy/ |
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
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