-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (62 loc) · 1.6 KB
/
wheels.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
name: Wheels
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build_sdist:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup
run: |
git submodule update --init --recursive
cd eigen && git apply ../patch_size.patch && cd ..
- name: Build
run: pipx run build --sdist
- name: Check
run: pipx run twine check dist/*
- uses: actions/upload-artifact@v3
with:
name: pyvpmr
path: dist/*.tar.gz
build_wheels:
name: Wheels
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest ]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup
run: |
git submodule update --init --recursive
cd eigen && git apply ../patch_size.patch && cd ..
- name: CI Build Wheel
uses: pypa/[email protected]
- name: Upload
uses: actions/upload-artifact@v3
with:
name: pyvpmr
path: wheelhouse/*.whl
upload_all:
name: Upload
needs: [ build_wheels, build_sdist ]
runs-on: ubuntu-latest
if: contains(github.event.head_commit.message, '[publish]')
steps:
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- uses: actions/download-artifact@v3
with:
name: pyvpmr
path: dist
- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI }}