Skip to content

Commit

Permalink
First adjustment to workflow to use manylinux (A.I. generated yaml)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbueno committed Nov 16, 2024
1 parent 9048de3 commit 981c80e
Showing 1 changed file with 33 additions and 22 deletions.
55 changes: 33 additions & 22 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,43 @@ name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI

on: push


name: Build and Publish Manylinux Wheels

on:
push:
branches:
- main
pull_request:

jobs:
build:
name: Build distribution 📦
runs-on: ubuntu-latest
environment:
name: release

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install pypa/build
run: >-
python3 -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: Store the distribution packages
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python versions
uses: actions/setup-python@v4
with:
python-version: "3.12"

- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.14.1

- name: Build wheels
env:
CIBW_BUILD: "cp312-* cp313-*"
CIBW_SKIP: "pp*"
CIBW_PLATFORM: "manylinux2014_x86_64" # Adjust if needed
run: |
python -m cibuildwheel --output-dir dist
- name: Upload built wheels as artifact
uses: actions/upload-artifact@v4
with:
name: built-wheels
path: dist

publish-to-pypi:
name: >-
Expand Down

0 comments on commit 981c80e

Please sign in to comment.