From 27560e4e1431d02888159f762971882d11c0bfe1 Mon Sep 17 00:00:00 2001 From: jfranmatheu <45881831+jfranmatheu@users.noreply.github.com> Date: Thu, 6 Mar 2025 23:04:55 +0100 Subject: [PATCH] Cython setup: more descriptive output on the compiled files and support cython submodules --- .github/workflows/build_cython.yml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_cython.yml b/.github/workflows/build_cython.yml index 214e30c9..1c351e35 100644 --- a/.github/workflows/build_cython.yml +++ b/.github/workflows/build_cython.yml @@ -57,16 +57,28 @@ jobs: shell: bash run: | cd retopoflow/cy - echo "Compiled files:" - ls -la *.so || ls -la *.pyd + echo "Current directory contents:" + ls -la + + echo -e "\nSearching for compiled files recursively:" + find . -type f \( -name "*.so" -o -name "*.pyd" \) || true + + # Don't fail if no files are found + if ! find . -type f \( -name "*.so" -o -name "*.pyd" \) | grep -q .; then + echo "No compiled extensions found. This might indicate a build issue." + # Continue without failing + exit 0 + fi - name: Upload compiled extensions uses: actions/upload-artifact@v4 + if: always() # Try to upload even if previous step failed with: name: compiled-extensions-${{ matrix.os }} path: | - retopoflow/cy/*.so - retopoflow/cy/*.pyd + retopoflow/cy/**/*.so + retopoflow/cy/**/*.pyd + if-no-files-found: warn # Change from error to warn retention-days: 7 commit-files: