Skip to content

Commit

Permalink
fix(ci/python): disable lto for alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
Curve committed May 30, 2024
1 parent ae2fc01 commit 692a433
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
if: ${{ matrix.os != 'windows-latest' }}
run: |
python -m venv venv
./venv/bin/pip install .
CMAKE_ARGS=-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=OFF ./venv/bin/pip install . # Alpine does not like LTO
./venv/bin/python -c "import viennals2d; print(viennals2d.__doc__)"
- name: 📦 Upload Artifact
Expand Down Expand Up @@ -89,21 +89,18 @@ jobs:
- name: 🛠️ Build VTK (Windows)
if: ${{ matrix.os == 'windows-latest' }}
run: |
# sed -i 's/\(DVIENNALS_BUILD_PYTHON=ON"\)/\1,"-DVIENNALS_PACKAGE_PYTHON=ON"/g' pyproject.toml
sed -i 's/\(DVIENNALS_BUILD_PYTHON=ON"\)/\1,"-DVIENNALS_PACKAGE_PYTHON=ON","-DVIENNALS_IS_CI=ON"/g' pyproject.toml
type pyproject.toml
- name: 🛠️ Build VTK (MacOs)
if: ${{ matrix.os == 'macos-latest' }}
run: |
# sed -i .bak 's/\(DVIENNALS_BUILD_PYTHON=ON"\)/\1,"-DVIENNALS_PACKAGE_PYTHON=ON"/g' pyproject.toml
sed -i .bak 's/\(DVIENNALS_BUILD_PYTHON=ON"\)/\1,"-DVIENNALS_PACKAGE_PYTHON=ON","-DVIENNALS_IS_CI=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"\)/\1,"-DVIENNALS_VTK_PYTHON_LIBS=ON"/g' pyproject.toml
sed -i 's/\(DVIENNALS_BUILD_PYTHON=ON"\)/\1,"-DVIENNALS_PACKAGE_PYTHON=ON","-DVIENNALS_IS_CI=ON"/g' pyproject.toml
cat pyproject.toml
Expand Down

0 comments on commit 692a433

Please sign in to comment.