forked from hz-b/rayx-python
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (42 loc) · 1.21 KB
/
Copy pathwheels.yml
File metadata and controls
52 lines (42 loc) · 1.21 KB
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
name: Build
on:
pull_request:
branches:
- main
push:
branches:
- main
tags:
- 'v*.*.*'
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
permissions:
# IMPORTANT: this permission is mandatory for Trusted Publishing
id-token: write
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v6
with:
submodules: recursive
persist-credentials: false
fetch-depth: 0
fetch-tags: true
# Used to host cibuildwheel
- uses: actions/setup-python@v6
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==4.0.0rc1
- name: Build wheels
run: python -m cibuildwheel --output-dir dist
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
verbose: true
if: github.event_name == 'push' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
- uses: actions/upload-artifact@v6
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./dist/*.whl