-
Notifications
You must be signed in to change notification settings - Fork 590
86 lines (69 loc) · 2.42 KB
/
wheel-universal.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
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.9.0
if: startsWith(github.ref, 'refs/tags')
with:
skip-existing: true