From 9a705c7a0f4089ac0a744616bce6d3e533e1ddfa Mon Sep 17 00:00:00 2001 From: David Schneider Date: Tue, 30 Jul 2024 10:19:27 +0200 Subject: [PATCH] Use manual installation of VTK in CI (#187) * Try manual installation * Increase timout * Revert changes * export path * Set env --- .github/workflows/aste_ci.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/aste_ci.yml b/.github/workflows/aste_ci.yml index 6cf932ab..2bfc4b97 100644 --- a/.github/workflows/aste_ci.yml +++ b/.github/workflows/aste_ci.yml @@ -16,12 +16,11 @@ jobs: build: runs-on: ubuntu-latest container: precice/precice:nightly - timeout-minutes: 30 + timeout-minutes: 80 env: CXX_FLAGS: "-Werror -Wall -Wextra -Wno-unused-parameter" CTEST_OUTPUT_ON_FAILURE: "Yes" steps: - - uses: actions/checkout@v4 - name: setup system run: | apt-get -y update && apt-get -y upgrade @@ -29,7 +28,14 @@ jobs: pip3 install --upgrade pip - name: install VTK run: | - apt-get -y install libvtk9-dev + git clone https://gitlab.kitware.com/vtk/vtk.git && cd vtk + git checkout v9.3.0 + mkdir build && cd build + cmake -DVTK_WRAP_PYTHON="ON" -DVTK_USE_MPI="ON" -DCMAKE_BUILD_TYPE=Release .. + cmake --build . -j 2 && cmake --install . + echo "PYTHONPATH=/usr/local/lib/python3.10/site-packages/:${PYTHONPATH}" >> $GITHUB_ENV + cd + - uses: actions/checkout@v4 - name: install example dependencies run: | python3 -m pip install sympy scipy jinja2