-
Notifications
You must be signed in to change notification settings - Fork 449
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
github: migrating cibuildwheel to separate action
- Loading branch information
Showing
2 changed files
with
24 additions
and
70 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 |
---|---|---|
|
@@ -49,31 +49,3 @@ jobs: | |
#make doc-check | ||
#make bench | ||
build_wheels: | ||
name: Build wheels on ${{ matrix.os }} | ||
needs: standard | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
# macos-13 is an intel runner, macos-14 is apple silicon | ||
#os: [ubuntu-latest, windows-latest, macos-13, macos-14] | ||
os: [ubuntu-latest, macos-13, macos-14] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
# env: | ||
# CIBW_SOME_OPTION: value | ||
# ... | ||
# with: | ||
# package-dir: . | ||
# output-dir: wheelhouse | ||
# config-file: "{package}/pyproject.toml" | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }} | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,52 +5,34 @@ on: | |
pull_request: | ||
push: | ||
branches: | ||
- master | ||
- bind-dev | ||
- v* | ||
- bind-scikit-build-dev | ||
|
||
jobs: | ||
standard: | ||
build_wheels: | ||
name: Build wheels on ${{ matrix.os }} | ||
needs: standard | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
runs-on: [ubuntu-latest, macos-latest] | ||
#python: [3.8, 3.9] | ||
|
||
name: "💦 ${{ matrix.runs-on }}" # • 🐍 ${{ matrix.python }} | ||
runs-on: ${{ matrix.runs-on }} | ||
# macos-13 is an intel runner, macos-14 is apple silicon | ||
#os: [ubuntu-latest, windows-latest, macos-13, macos-14] | ||
os: [ubuntu-latest, macos-13, macos-14] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
#- name: Setup Python ${{ matrix.python }} | ||
# uses: actions/setup-python@v2 | ||
# with: | ||
# python-version: ${{ matrix.python }} | ||
|
||
- name: Setup pybind-dev (Linux) | ||
if: runner.os == 'Linux' | ||
run: sudo apt-get install pybind11-dev | ||
|
||
- name: Setup pybind-dev (macOS) | ||
if: runner.os == 'macOS' | ||
run: brew install pybind11 | ||
|
||
- name: Setup python dependencies (pip) | ||
run: sudo -H python3 -m pip install pybind11 numpy matplotlib | ||
|
||
- name: bootstrap | ||
run: ./bootstrap.sh | ||
|
||
- name: configure | ||
run: ./configure | ||
|
||
- name: make python | ||
run: make -j 2 python | ||
|
||
- name: make check-python | ||
run: make check-python | ||
|
||
- name: make check-bind | ||
run: make -j 2 check-bind | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
# env: | ||
# CIBW_SOME_OPTION: value | ||
# ... | ||
# with: | ||
# package-dir: . | ||
# output-dir: wheelhouse | ||
# config-file: "{package}/pyproject.toml" | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }} | ||
path: ./wheelhouse/*.whl | ||
|