Skip to content

Commit

Permalink
GH Action build-cython: suppor any *.pyx and *.pxd (headers) in the /…
Browse files Browse the repository at this point in the history
…cy folder instead of hardcoded filenames.
  • Loading branch information
jfranmatheu committed Feb 12, 2025
1 parent 06e77b6 commit aa0efd6
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build_cython.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ on:
push:
paths:
- 'retopoflow/cy/*.pyx'
- 'retopoflow/cy/*.pxd'
- 'cy_setup.py'
- '.github/workflows/build_cython.yml'
pull_request:
paths:
- 'retopoflow/cy/*.pyx'
- 'retopoflow/cy/*.pxd'
- 'cy_setup.py'
workflow_dispatch: # Allows manual triggering

Expand Down Expand Up @@ -64,13 +66,15 @@ jobs:
run: |
cd retopoflow/cy
echo "Compiled files:"
ls -la rfmesh_visibility*.so || ls -la rfmesh_visibility*.pyd
ls -la *.so || ls -la *.pyd
- name: Upload compiled extension
- name: Upload compiled extensions
uses: actions/upload-artifact@v4
with:
name: compiled-extension-${{ matrix.os }}
path: retopoflow/cy/rfmesh_visibility*.*
name: compiled-extensions-${{ matrix.os }}
path: |
retopoflow/cy/*.so
retopoflow/cy/*.pyd
retention-days: 7

commit-files:
Expand Down

0 comments on commit aa0efd6

Please sign in to comment.