Skip to content

Commit 374d741

Browse files
committed
feat: try a re-gen
1 parent 03f5d43 commit 374d741

File tree

1 file changed

+27
-28
lines changed

1 file changed

+27
-28
lines changed

.github/workflows/pypi.yaml

Lines changed: 27 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: PyPI
22

33
on:
44
push:
5+
branches:
6+
- main
57
tags:
68
- "v*"
79
workflow_dispatch:
@@ -19,24 +21,18 @@ jobs:
1921
strategy:
2022
matrix:
2123
platform:
22-
- runner: ubuntu-latest
24+
- runner: ubuntu-22.04
2325
target: x86_64
24-
manylinux: auto
25-
- runner: ubuntu-latest
26+
- runner: ubuntu-22.04
2627
target: x86
27-
manylinux: auto
28-
- runner: ubuntu-latest
28+
- runner: ubuntu-22.04
2929
target: aarch64
30-
manylinux: "2_28"
31-
- runner: ubuntu-latest
30+
- runner: ubuntu-22.04
3231
target: armv7
33-
manylinux: auto
34-
- runner: ubuntu-latest
32+
- runner: ubuntu-22.04
3533
target: s390x
36-
manylinux: auto
37-
- runner: ubuntu-latest
34+
- runner: ubuntu-22.04
3835
target: ppc64le
39-
manylinux: auto
4036
steps:
4137
- uses: actions/checkout@v4
4238
- uses: actions/setup-python@v5
@@ -47,8 +43,8 @@ jobs:
4743
with:
4844
target: ${{ matrix.platform.target }}
4945
args: --release --out dist --find-interpreter -F duckdb/bundled
50-
sccache: "true"
51-
manylinux: ${{ matrix.platform.manylinux }}
46+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
47+
manylinux: auto
5248
- name: Upload wheels
5349
uses: actions/upload-artifact@v4
5450
with:
@@ -60,13 +56,13 @@ jobs:
6056
strategy:
6157
matrix:
6258
platform:
63-
- runner: ubuntu-latest
59+
- runner: ubuntu-22.04
6460
target: x86_64
65-
- runner: ubuntu-latest
61+
- runner: ubuntu-22.04
6662
target: x86
67-
- runner: ubuntu-latest
63+
- runner: ubuntu-22.04
6864
target: aarch64
69-
- runner: ubuntu-latest
65+
- runner: ubuntu-22.04
7066
target: armv7
7167
steps:
7268
- uses: actions/checkout@v4
@@ -78,15 +74,14 @@ jobs:
7874
with:
7975
target: ${{ matrix.platform.target }}
8076
args: --release --out dist --find-interpreter -F duckdb/bundled
81-
sccache: "true"
77+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
8278
manylinux: musllinux_1_2
8379
- name: Upload wheels
8480
uses: actions/upload-artifact@v4
8581
with:
8682
name: wheels-musllinux-${{ matrix.platform.target }}
8783
path: dist
8884

89-
# https://github.com/gadomski/stacrs/issues/1
9085
# windows:
9186
# runs-on: ${{ matrix.platform.runner }}
9287
# strategy:
@@ -106,8 +101,8 @@ jobs:
106101
# uses: PyO3/maturin-action@v1
107102
# with:
108103
# target: ${{ matrix.platform.target }}
109-
# args: --release --out dist --find-interpreter
110-
# sccache: "true"
104+
# args: --release --out dist --find-interpreter -F duckdb/bundled
105+
# sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
111106
# - name: Upload wheels
112107
# uses: actions/upload-artifact@v4
113108
# with:
@@ -133,7 +128,7 @@ jobs:
133128
with:
134129
target: ${{ matrix.platform.target }}
135130
args: --release --out dist --find-interpreter -F duckdb/bundled
136-
sccache: "true"
131+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
137132
- name: Upload wheels
138133
uses: actions/upload-artifact@v4
139134
with:
@@ -159,10 +154,12 @@ jobs:
159154
name: Release
160155
runs-on: ubuntu-latest
161156
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
162-
needs: [linux, musllinux, macos, sdist]
163-
environment:
164-
name: pypi
165-
url: https://pypi.org/p/stacrs
157+
needs:
158+
- linux
159+
- musllinux
160+
# - windows
161+
- macos
162+
- sdist
166163
permissions:
167164
id-token: write
168165
contents: write
@@ -173,7 +170,9 @@ jobs:
173170
uses: actions/attest-build-provenance@v1
174171
with:
175172
subject-path: "wheels-*/*"
176-
- uses: PyO3/maturin-action@v1
173+
- name: Publish to PyPI
174+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
175+
uses: PyO3/maturin-action@v1
177176
with:
178177
command: upload
179178
args: --non-interactive --skip-existing wheels-*/*

0 commit comments

Comments
 (0)