-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from munechika-koyo/develop
👷 fix cibuildwheel config
- Loading branch information
Showing
4 changed files
with
24 additions
and
22 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 |
---|---|---|
@@ -1,41 +1,32 @@ | ||
# This workflow will build sdist & bdist of Python Package with specific python version. | ||
# This workflow will build wheel files using cibuildwheel and upload them as artifacts | ||
|
||
name: Build Distribution 📦 | ||
name: Build Wheel Distribution 📦 | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [main] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build_dist: | ||
runs-on: ubuntu-latest | ||
build_wheels: | ||
name: Build wheels 📦 on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
python: ['3.9', '3.10', '3.11'] | ||
os: [ubuntu-latest, macos-latest] | ||
|
||
steps: | ||
- name: check out repo | ||
uses: actions/checkout@v3 | ||
- name: Check out repo | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
lfs: true | ||
|
||
- name: Set up Python 🐍 ${{ matrix.python }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
|
||
- name: Build Python 🐍 distribution 📦 | ||
run: | | ||
python -m pip install build --user | ||
python -m build | ||
- name: Build 🐍 wheels | ||
uses: pypa/[email protected] | ||
|
||
- name: Upload distribution 📦 as artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: dist-python${{ matrix.python }} | ||
path: dist/* | ||
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