File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 workflow_dispatch :
55
66jobs :
7- publish-python :
7+ build :
8+ strategy :
9+ matrix :
10+ include :
11+ - os : ubuntu-latest
12+ target : x86_64-unknown-linux-gnu
13+ - os : ubuntu-latest
14+ target : aarch64-unknown-linux-gnu
15+ - os : macos-latest
16+ target : x86_64-apple-darwin
17+ - os : macos-latest
18+ target : aarch64-apple-darwin
19+ - os : windows-latest
20+ target : x86_64-pc-windows-msvc
21+ runs-on : ${{ matrix.os }}
22+ steps :
23+ - uses : actions/checkout@v6
24+ - uses : PyO3/maturin-action@v1
25+ with :
26+ command : build
27+ target : ${{ matrix.target }}
28+ args : --release --manifest-path packages/python/pyproject.toml --out dist
29+ - uses : actions/upload-artifact@v4
30+ with :
31+ name : wheel-${{ matrix.target }}
32+ path : dist/*.whl
33+
34+ sdist :
35+ runs-on : ubuntu-latest
36+ steps :
37+ - uses : actions/checkout@v6
38+ - uses : PyO3/maturin-action@v1
39+ with :
40+ command : sdist
41+ args : --manifest-path packages/python/pyproject.toml --out dist
42+ - uses : actions/upload-artifact@v4
43+ with :
44+ name : sdist
45+ path : dist/*.tar.gz
46+
47+ publish :
48+ needs : [build, sdist]
849 runs-on : ubuntu-latest
950 environment : pypi
1051 permissions :
1152 id-token : write
12- defaults :
13- run :
14- working-directory : packages/python
1553 steps :
16- - uses : actions/checkout@v6
17- - uses : astral-sh/setup-uv@v5
18- - run : uv build
19- - run : uv publish --trusted-publishing always
54+ - uses : actions/download-artifact@v4
55+ with :
56+ path : dist
57+ merge-multiple : true
58+ - uses : astral-sh/setup-uv@v8.0.0
59+ - run : uv publish --trusted-publishing always dist/*
You can’t perform that action at this time.
0 commit comments