-
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.
- Loading branch information
Showing
1 changed file
with
2 additions
and
27 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 |
---|---|---|
|
@@ -32,11 +32,6 @@ jobs: | |
|
||
build_wheels: | ||
|
||
# Only run if the commit message contains '[ci build]' OR always run if it's a tag | ||
# This will not respect the tag if it appears in a pull request commit message. Those builds always show up as 'synchronize' events, and there is no easy way to get the corresponding commit messages. We instead pull the PR title to check for tags. | ||
# More info here: https://github.community/t/accessing-commit-message-in-pull-request-event/17158/13 | ||
# if: "contains(toJSON(github.event.commits.*.message), '[ci build]') || contains(toJSON(github.event.pull_request.title), '[ci build]') || contains(github.ref, 'refs/tags')" | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -45,7 +40,7 @@ jobs: | |
# importantly, github times out after 6 hours _per job_. | ||
|
||
cpversion: ["cp36", "cp37", "cp38", "cp39", "cp310", "cp311", "cp312"] | ||
os: [ { runs-on: ubuntu-latest, cibw-arch: manylinux_x86_64, cibw-platform: manylinux2014}, { runs-on: macos-latest, cibw-arch: macosx_x86_64}, { runs-on: macos-latest, cibw-arch: macosx_arm64}, { runs-on: windows-latest, cibw-arch: win_amd64} ] | ||
os: [ { runs-on: ubuntu-latest, cibw-arch: manylinux_x86_64}, { runs-on: macos-latest, cibw-arch: macosx_x86_64}, { runs-on: macos-latest, cibw-arch: macosx_arm64}, { runs-on: windows-latest, cibw-arch: win_amd64} ] | ||
exclude: | ||
- os: { runs-on: macos-latest, cibw-arch: macosx_arm64} | ||
cpversion: "cp36" | ||
|
@@ -61,6 +56,7 @@ jobs: | |
env: | ||
CIBW_BUILD_VERBOSITY: 3 | ||
CIBW_BEFORE_BUILD_LINUX : "yum install -y libXrandr libXrandr-devel libXinerama libXinerama-devel libXcursor libXcursor-devel libXi libXi-devel" | ||
CIBW_MANYLINUX_*_IMAGE : "manylinux_2_24" | ||
CIBW_BUILD: "${{ matrix.cpversion }}-${{ matrix.os.cibw-arch }}" | ||
# CIBW_TEST_SKIP: "*-macosx_arm64" | ||
CIBW_ENVIRONMENT: "MAX_JOBS=2" | ||
|
@@ -89,24 +85,3 @@ jobs: | |
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/ |