Skip to content

Commit c661a88

Browse files
committed
.github/workflows/recorder-release.yml: Install capnproto for release builds
Signed-off-by: Tzanko Matev <[email protected]>
1 parent 9981d14 commit c661a88

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/workflows/recorder-release.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,12 @@ jobs:
8787
8888
- name: Build artefacts (Linux targets)
8989
if: startsWith(matrix.name, 'linux-')
90-
uses: messense/maturin-action@v1
90+
uses: PyO3/maturin-action@v1
9191
with:
9292
command: build
93-
args: ${{ matrix.publish-args }}
93+
args: -m codetracer-python-recorder/Cargo.toml ${{ matrix.publish-args }}
9494
manylinux: ${{ matrix.manylinux }}
95+
before-script-linux: yum install -y capnproto
9596
working-directory: codetracer-python-recorder
9697

9798
- name: Install Python 3.12 (macOS)
@@ -124,6 +125,14 @@ jobs:
124125
python-version: '3.13'
125126
architecture: 'x64'
126127

128+
- name: Install Cap'n Proto (macOS)
129+
if: startsWith(matrix.name, 'macos')
130+
run: brew install capnp
131+
132+
- name: Install Cap'n Proto (Windows)
133+
if: matrix.name == 'windows-amd64'
134+
run: choco install -y capnproto
135+
127136
- name: Install maturin (macOS)
128137
if: startsWith(matrix.name, 'macos')
129138
run: python3 -m pip install --upgrade pip maturin>=1.5,<2
@@ -145,14 +154,14 @@ jobs:
145154
env:
146155
PYTHON: ${{ steps.win_py312.outputs.python-path }}
147156
working-directory: ${{ env.CRATE_DIR }}
148-
run: maturin build --release --interpreter "$env:PYTHON"
157+
run: maturin build --release --interpreter "$env:PYTHON\python.exe"
149158

150159
- name: Build cp313 wheel (Windows)
151160
if: matrix.name == 'windows-amd64'
152161
env:
153162
PYTHON: ${{ steps.win_py313.outputs.python-path }}
154163
working-directory: ${{ env.CRATE_DIR }}
155-
run: maturin build --release --interpreter "$env:PYTHON"
164+
run: maturin build --release --interpreter "$env:PYTHON\python.exe"
156165

157166
- name: Upload artefacts
158167
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)