File tree Expand file tree Collapse file tree 1 file changed +29
-2
lines changed
Expand file tree Collapse file tree 1 file changed +29
-2
lines changed Original file line number Diff line number Diff line change 1818 strategy :
1919 fail-fast : false
2020 matrix :
21- os : ["ubuntu-latest ", "ubuntu-24.04-arm"]
21+ os : ["ubuntu-24.04 ", "ubuntu-24.04-arm"]
2222 python-version : ["3.13"]
2323 runs-on : ${{ matrix.os }}
2424 steps :
5555 ./configure --with-orbits-dir=/tmp CFLAGS='-z muldefs' LDFLAGS='-z muldefs'
5656 make CFLAGS='-z muldefs' LDFLAGS='-z muldefs'
5757 make install
58+ - name : Compile VTK (ARM64 only)
59+ run : |
60+ if [ "$(uname -m)" = "aarch64" ]; then
61+ # install dependencies
62+ apt-get -y update && apt-get -y install \
63+ libopengl0 mesa-utils \
64+ libgl1-mesa-dev libegl1-mesa-dev libgles2-mesa-dev \
65+ cmake ninja-build python3-dev build-essential
66+
67+ # install python vtk library
68+ git clone --depth=1 --branch v9.3.1 https://gitlab.kitware.com/vtk/vtk.git
69+ cd vtk
70+ mkdir build && cd build
71+ cmake ../ \
72+ -GNinja \
73+ -DCMAKE_BUILD_TYPE=Release \
74+ -DVTK_DEFAULT_RENDER_WINDOW_OFFSCREEN=ON \
75+ -DVTK_OPENGL_HAS_EGL=ON \
76+ -DVTK_OPENGL_HAS_OSMESA=OFF \
77+ -DVTK_USE_X=OFF \
78+ -DCMAKE_INSTALL_PREFIX=$(python3 -c "import sys; print(sys.prefix)") \
79+ -DVTK_WRAP_PYTHON=ON \
80+ -DVTK_PYTHON_VERSION=3
81+ ninja -j$(nproc)
82+ ninja install
83+ cd ../..
84+ fi
5885 - name : Install PyGMTSAR
5986 run : |
60- # rasterio build required on ARM64 only
87+ # rasterio and VTK build required on ARM64 only
6188 if [ "$(uname -m)" = "aarch64" ]; then
6289 echo "Installing ARM64-specific dependencies..."
6390 sudo apt install -y libhdf5-dev pkg-config libgdal-dev
You can’t perform that action at this time.
0 commit comments