Skip to content

Commit

Permalink
GH action: test to check if original compiled files naming is correct…
Browse files Browse the repository at this point in the history
… for all architectures
  • Loading branch information
jfranmatheu committed Feb 12, 2025
1 parent 6e0def3 commit cf0dab5
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/build_cython.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ jobs:
shell: bash
run: |
cd retopoflow/cy
echo "Files before renaming:"
ls -la rfmesh_visibility*.so || ls -la rfmesh_visibility*.pyd
if [ "${{ matrix.os }}" == "windows-latest" ]; then
echo "Windows build - keeping original name"
elif [ "${{ matrix.os }}" == "macos-latest" ]; then
Expand All @@ -71,19 +74,13 @@ jobs:
else
arch=$(uname -m)
fi
# First remove target if it exists
rm -f rfmesh_visibility.cpython-311-darwin-${arch}.so
# Then move the file
for f in rfmesh_visibility*.so; do
mv "$f" rfmesh_visibility.cpython-311-darwin-${arch}.so
done
echo "Target architecture: ${arch}"
echo "Current file(s):"
ls -la rfmesh_visibility*.so
elif [ "${{ matrix.os }}" == "ubuntu-latest" ]; then
# First remove target if it exists
rm -f rfmesh_visibility.cpython-311-linux-$(uname -m).so
# Then move the file
for f in rfmesh_visibility*.so; do
mv "$f" rfmesh_visibility.cpython-311-linux-$(uname -m).so
done
echo "Linux architecture: $(uname -m)"
echo "Current file(s):"
ls -la rfmesh_visibility*.so
fi
- name: Upload compiled extension
Expand Down

0 comments on commit cf0dab5

Please # to comment.