-
Notifications
You must be signed in to change notification settings - Fork 1
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 #43 from DifferentiableUniverseInitiative/ASKabala…
…n_patch As kabalan patch
- Loading branch information
Showing
1 changed file
with
11 additions
and
19 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 |
---|---|---|
|
@@ -6,37 +6,24 @@ on: | |
|
||
jobs: | ||
build_wheels: | ||
name: Build wheels on ${{ matrix.os }} for Python ${{ matrix.python-version }} | ||
name: Build wheels on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
# macos-13 is an intel runner, macos-14 is apple silicon | ||
os: [ubuntu-latest] | ||
python-version: ["3.10", "3.11", "3.12"] # Specify the Python versions here | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} # Use matrix to set Python version | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install build cibuildwheel | ||
- name: Build wheels with cibuildwheel | ||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
with: | ||
# Builds for specific Python versions specified in matrix | ||
python-version: ${{ matrix.python-version }} | ||
env: | ||
CIBW_SKIP: "pp*" # Skip non-CPython implementations | ||
|
||
CIBW_BUILD: "cp310-* cp311-* cp312-*" | ||
CIBW_BUILD_VERBOSITY: 2 | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: cibw-wheels-${{ matrix.os }}-${{ matrix.python-version }} | ||
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }} | ||
path: ./wheelhouse/*.whl | ||
|
||
build_sdist: | ||
|
@@ -60,11 +47,16 @@ jobs: | |
permissions: | ||
id-token: write | ||
if: github.event_name == 'release' && github.event.action == 'published' | ||
# or, alternatively, upload to PyPI on every tag starting with 'v' (remove on: release above to use this) | ||
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
# unpacks all CIBW artifacts into dist/ | ||
pattern: cibw-* | ||
path: dist | ||
merge-multiple: true | ||
|
||
- uses: pypa/gh-action-pypi-publish@release/v1 | ||
#with: | ||
# repository-url: https://test.pypi.org/legacy/ |