Skip to content

Commit b282400

Browse files
committed
Fix Windows native extension staging
1 parent 3f383d0 commit b282400

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/template_native_build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,11 @@ jobs:
157157
ext_src="target/${{ inputs.target }}/release/lib_native.dylib"
158158
[ -f "$ext_src" ] && cp "$ext_src" staging/_native.abi3.so
159159
elif [ "${{ inputs.binary_ext }}" = ".exe" ]; then
160-
[ -f target/release/_native.dll ] && \
161-
cp target/release/_native.dll staging/_native.pyd
160+
for ext_src in \
161+
"target/${{ inputs.target }}/release/_native.dll" \
162+
"target/release/_native.dll"; do
163+
[ -f "$ext_src" ] && cp "$ext_src" staging/_native.pyd && break
164+
done
162165
else
163166
for ext in so dylib; do
164167
src="target/release/lib_native.$ext"
@@ -182,6 +185,7 @@ jobs:
182185
strip staging/fbuild${{ inputs.binary_ext }} || true
183186
strip staging/fbuild-daemon${{ inputs.binary_ext }} || true
184187
strip staging/_native.abi3.so 2>/dev/null || true
188+
strip staging/_native.pyd 2>/dev/null || true
185189
fi
186190
187191
- name: Upload artifacts

0 commit comments

Comments
 (0)