Skip to content

Build universal wheel #304

Build universal wheel

Build universal wheel #304

name: Build universal wheel
on:
push:
branches:
- master
tags:
- "*"
pull_request:
branches:
- master
schedule:
- cron: "0 2 * * 1-5"
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
build_wheels:
name: Build universal wheels and source distributions
runs-on: ubuntu-latest
permissions:
id-token: write # pypa/gh-action-pypi-publish
steps:
- uses: actions/checkout@v1
with:
submodules: true
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: chores
run: |
mkdir dist
pip install -U pip setuptools wheel
- name: Build vaex
run: |
(cp README.md packages/vaex/ && cd packages/vaex && python setup.py sdist bdist_wheel); cp packages/vaex/dist/* dist
- name: Build vaex-graphql
run: |
(cd packages/vaex-graphql && python setup.py sdist bdist_wheel); cp packages/vaex-graphql/dist/* dist
- name: Build vaex-jupyter
run: |
(cd packages/vaex-jupyter && python setup.py sdist bdist_wheel); cp packages/vaex-jupyter/dist/* dist
- name: Build vaex-ml
run: |
(cd packages/vaex-ml && python setup.py sdist bdist_wheel); cp packages/vaex-ml/dist/* dist
- name: Build vaex-contrib
run: |
(cd packages/vaex-contrib && python setup.py sdist bdist_wheel); cp packages/vaex-contrib/dist/* dist
- name: Build vaex-viz
run: |
(cd packages/vaex-viz && python setup.py sdist bdist_wheel); cp packages/vaex-viz/dist/* dist
- name: Build vaex-astro
run: |
(cd packages/vaex-astro && python setup.py sdist bdist_wheel); cp packages/vaex-astro/dist/* dist
- name: Build vaex-hdf5
run: |
(cd packages/vaex-hdf5 && python setup.py sdist bdist_wheel); cp packages/vaex-hdf5/dist/* dist
- name: Build vaex-server
run: |
(cd packages/vaex-server && python setup.py sdist bdist_wheel); cp packages/vaex-server/dist/* dist
- uses: actions/upload-artifact@v4
with:
name: distributions-universal
path: ./dist
# https://github.com/pypa/gh-action-pypi-publish#trusted-publishing
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@v1.10.2
if: startsWith(github.ref, 'refs/tags')
with:
skip-existing: true