Skip to content

Build python wheels #22

Build python wheels

Build python wheels #22

Workflow file for this run

name: Build python wheels
on:
workflow_dispatch
jobs:
build-sdist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Setup pip
run: |
python -m pip install --upgrade pip
python -m pip install build
- name: Build sdist
run: python -m build --sdist
# build-wheels:
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# os: [ubuntu-latest]
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-python@v2
# with:
# python-version: 3.11
# - name: Setup pip
# run: |
# python -m pip install --upgrade pip
# python -m pip install cibuildwheel
# - name: Build wheel
# run: python -m cibuildwheel --output-dir dist/
# env:
# CIBW_BUILD: cp311-manylinux_x86_64
# CIBW_SKIP: "*-win32 *-manylinux_i686"
# CIBW_BUILD_VERBOSITY: 1
# CIBW_BEFORE_ALL: "yum install -y openblas-devel"
# CIBW_CONFIG_SETTINGS: "cmake.define.ENABLE_PYTHON_EMBED=OFF"
# CIBW_TEST_REQUIRES: pytest
# CIBW_TEST_COMMAND: >
# cd {package} &&
# pytest python/test
# - name: Upload distributions
# uses: actions/upload-artifact@v4
# with:
# name: release-dists
# path: dist/
pypi-publish:
runs-on: ubuntu-latest
needs:
- build-sdist
#- build-wheels
permissions:
id-token: write
# Dedicated environments with protections for publishing are strongly recommended.
environment:
name: pypi
url: https://pypi.org/project/pygenten/
steps:
- name: Retrieve release distributions
uses: actions/download-artifact@v4
with:
name: release-dists
path: dist/
- name: Publish release distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
skip-existing: true