Skip to content

Commit

Permalink
fix(ci): sed, don't repair
Browse files Browse the repository at this point in the history
  • Loading branch information
Curve committed May 2, 2024
1 parent 8d1e35a commit 8f5d44e
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,27 @@ 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
cat 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
run: |
sed -i 's/DVIENNALS_BUILD_PYTHON=ON"/\0,"-DVIENNALS_VTK_PYTHON_LIBS=ON"/g' pyproject.toml
cat pyproject.toml
- 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_LINUX: ""

- name: 📦 Upload Artifact
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 8f5d44e

Please sign in to comment.