From fc2748572a1e0fd5e0d82d8b795156c0694b2c42 Mon Sep 17 00:00:00 2001 From: Curve Date: Fri, 3 May 2024 00:39:10 +0200 Subject: [PATCH] fix(ci): sed, don't repair --- .github/workflows/python.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 6e8d0edb..f0819d4a 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -82,10 +82,14 @@ jobs: - name: 🛞 CIBuildWheel run: python -m pip install cibuildwheel==2.17.0 - - name: 🛠️ Build VTK - if: ${{ matrix.os != 'ubuntu-latest' }} + - name: 🛠️ Build VTK (Windows) + if: ${{ matrix.os == 'windows-latest' }} run: sed -i 's/DVIENNALS_BUILD_PYTHON=ON"/\0,"-DVIENNALS_PACKAGE_PYTHON=ON"/g' pyproject.toml + - name: 🛠️ Build VTK (MacOs) + if: ${{ matrix.os == 'macos-latest' }} + run: sed -i.bak 's/DVIENNALS_BUILD_PYTHON=ON"/\0,"-DVIENNALS_PACKAGE_PYTHON=ON"/g' pyproject.toml + - name: 🛠️ Use VTK-Python Libs if: ${{ matrix.os == 'ubuntu-latest' }} run: sed -i 's/DVIENNALS_BUILD_PYTHON=ON"/\0,"-DVIENNALS_VTK_PYTHON_LIBS=ON"/g' pyproject.toml @@ -93,7 +97,8 @@ jobs: - name: 🏗️ Build Wheels run: python -m cibuildwheel --output-dir wheelhouse env: - CIBW_BUILD: cp310-* cp311-* cp312-* + CIBW_BUILD: "cp310-* cp311-* cp312-*" + CIBW_REPAIR_WHEEL_COMMAND: "echo 'Skipping repair'" - name: 📦 Upload Artifact uses: actions/upload-artifact@v4