Try manual installation of VTK #585
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ASTE CI | |
on: | |
push: | |
branches: [master, develop] | |
pull_request: | |
branches: [master, develop] | |
concurrency: | |
group: ${ {github.event_name }}-${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{github.event_name == 'pull_request'}} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: precice/precice:develop | |
timeout-minutes: 80 | |
env: | |
CXX_FLAGS: "-Werror -Wall -Wextra -Wno-unused-parameter" | |
CTEST_OUTPUT_ON_FAILURE: "Yes" | |
steps: | |
- name: setup system | |
run: | | |
apt-get -y update && apt-get -y upgrade | |
apt-get install -y python3-pip pkg-config time | |
pip3 install --upgrade pip | |
- name: install VTK | |
run: | | |
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 . | |
export PYTHONPATH="/usr/local/lib/python3.10/site-packages/:${PYTHONPATH}" | |
cd | |
- uses: actions/checkout@v4 | |
- name: install example dependencies | |
run: | | |
python3 -m pip install sympy scipy jinja2 | |
- name: prepare directories | |
run: | | |
mkdir build_gcc build_clang | |
- name: build aste gcc | |
working-directory: build_gcc | |
env: | |
CC: gcc | |
CXX: g++ | |
run: | | |
cmake .. | |
cmake --build . | |
- name: Adjust user rights | |
run: chown -R $PRECICE_USER . | |
- name: run test gcc | |
working-directory: build_gcc | |
run: | | |
su -c "ctest" $PRECICE_USER | |
- name: install clang | |
run: | | |
apt-get -y install clang | |
- name: build aste clang | |
working-directory: build_clang | |
env: | |
CC: clang | |
CXX: clang++ | |
run: | | |
cmake .. | |
cmake --build . | |
- name: Adjust user rights | |
run: chown -R $PRECICE_USER . | |
- name: run test clang | |
working-directory: build_clang | |
run: | | |
su -c "ctest" $PRECICE_USER |