Skip to content

Commit e774547

Browse files
committed
ci: run maturin from sqlshield-py crate dir
Workflow ran maturin from repo root, where the workspace Cargo.toml has no [package] section and no pyproject.toml. Set working-directory to the pyo3 crate (sqlshield-py) and adjust --out to ../dist.
1 parent 76c4097 commit e774547

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@ jobs:
4444
- name: Build wheels
4545
uses: PyO3/maturin-action@v1
4646
with:
47+
working-directory: sqlshield-py
4748
target: ${{ matrix.platform.target }}
48-
args: --release --out dist --find-interpreter
49+
args: --release --out ../dist --find-interpreter
4950
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
5051
manylinux: auto
5152
- name: Upload wheels
@@ -75,8 +76,9 @@ jobs:
7576
- name: Build wheels
7677
uses: PyO3/maturin-action@v1
7778
with:
79+
working-directory: sqlshield-py
7880
target: ${{ matrix.platform.target }}
79-
args: --release --out dist --find-interpreter
81+
args: --release --out ../dist --find-interpreter
8082
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
8183
manylinux: musllinux_1_2
8284
- name: Upload wheels
@@ -103,8 +105,9 @@ jobs:
103105
- name: Build wheels
104106
uses: PyO3/maturin-action@v1
105107
with:
108+
working-directory: sqlshield-py
106109
target: ${{ matrix.platform.target }}
107-
args: --release --out dist --find-interpreter
110+
args: --release --out ../dist --find-interpreter
108111
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
109112
- name: Upload wheels
110113
uses: actions/upload-artifact@v4
@@ -129,8 +132,9 @@ jobs:
129132
- name: Build wheels
130133
uses: PyO3/maturin-action@v1
131134
with:
135+
working-directory: sqlshield-py
132136
target: ${{ matrix.platform.target }}
133-
args: --release --out dist --find-interpreter
137+
args: --release --out ../dist --find-interpreter
134138
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
135139
- name: Upload wheels
136140
uses: actions/upload-artifact@v4
@@ -145,8 +149,9 @@ jobs:
145149
- name: Build sdist
146150
uses: PyO3/maturin-action@v1
147151
with:
152+
working-directory: sqlshield-py
148153
command: sdist
149-
args: --out dist
154+
args: --out ../dist
150155
- name: Upload sdist
151156
uses: actions/upload-artifact@v4
152157
with:

0 commit comments

Comments
 (0)