-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAINT, CI: cibuildwheel support (#741)
* pyproject.toml updates to support cibuildwheel * drop '--build-ext' option in setup.py for env var This option to build the C extension is only used in the wheel building process. cibuildwheel does not appear to support an ability to pass options to setuptools, and even if it did there appears to be no support for pip installing wheels with flags like '--build-option' (see pypa/pip#5771). This commit also updates our build-wheels script to use this env var, even though those scripts are more or less deprecated. * add first cut at build_wheels github action * tell build_wheels action about pydarshan directory * checkout autoperf submodule before building wheels * pin matplotlib<3.5 for cibuildwheel test phase see gh-479 for more details * avoid macos builds for now * move cibuildwheel linux specific bits * only build cpython, re-enable macos builds * install automake on macos * bug fix in specifying cibuildwheel before-all * debug pypy 3.9 builds * add more brew dependencies for macos * skip pypy builds, as well as ppc/s390x * explicitly specicy repair wheel commands * restrict when wheels are built for now, just runs manually via GitHub actions, or by appending a message to the commit message * add dummy file to test commit message wheel hooks [wheel build] * forgot part of the github workflow config [wheel build] * actually add the get commit message job [wheel build] * let's try one more time... [wheel build] * allow manual running of wheels workflow * update release checklist to reflect wheel changes
- Loading branch information
1 parent
d35f49d
commit 592f227
Showing
5 changed files
with
117 additions
and
8 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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Build Wheels | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- darshan-util/** | ||
- include/** | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- darshan-util/** | ||
- include/* | ||
workflow_dispatch: | ||
|
||
jobs: | ||
get_commit_message: | ||
name: Get commit message | ||
runs-on: ubuntu-latest | ||
if: github.repository == 'darshan-hpc/darshan' | ||
outputs: | ||
message: ${{ steps.commit_message.outputs.message }} | ||
steps: | ||
- name: Checkout darshan | ||
uses: actions/checkout@v3 | ||
# Gets the correct commit message for pull request | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
- name: Get commit message | ||
id: commit_message | ||
run: | | ||
set -xe | ||
COMMIT_MSG=$(git log --no-merges -1 --oneline) | ||
echo "::set-output name=message::$COMMIT_MSG" | ||
echo github.ref ${{ github.ref }} | ||
build_wheels: | ||
name: Build wheels on ${{ matrix.os }} | ||
needs: get_commit_message | ||
if: >- | ||
contains(needs.get_commit_message.outputs.message, '[wheel build]') || | ||
github.event_name == 'workflow_dispatch' | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Build wheels | ||
uses: pypa/cibuildwheel@v2.5.0 | ||
with: | ||
package-dir: ./darshan-util/pydarshan | ||
|
||
- uses: actions/upload-artifact@v2 | ||
with: | ||
path: ./wheelhouse/*.whl |
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
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