Skip to content

Commit e42d368

Browse files
author
doublebyte1
committed
- install gdal from source
1 parent cae2f66 commit e42d368

1 file changed

Lines changed: 15 additions & 4 deletions

File tree

‎.github/workflows/main.yml‎

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,21 @@ jobs:
122122
# with:
123123
# packages: gdal-bin libgdal-dev
124124
# version: 3.11.3
125+
- name: Install GDAL 3.11.3 from source
126+
run: |
127+
# Install build dependencies
128+
sudo apt-get update
129+
sudo apt-get install -y build-essential cmake libsqlite3-dev libgeos-dev libproj-dev zlib1g-dev
130+
131+
# Download and compile GDAL 3.11.3
132+
wget https://github.com/OSGeo/gdal/releases/download/v3.11.3/gdal-3.11.3.tar.gz
133+
tar -xzf gdal-3.11.3.tar.gz
134+
cd gdal-3.11.3
135+
./configure --prefix=/usr/local
136+
make -j$(nproc)
137+
sudo make install
138+
sudo ldconfig # Update library cache
139+
cd ..
125140
- name: Install requirements 📦
126141
run: |
127142
pip3 install setuptools
@@ -134,10 +149,6 @@ jobs:
134149
pip3 install -r requirements-django.txt
135150
pip3 install -r requirements-pubsub.txt
136151
pip3 install .
137-
sudo apt-get update
138-
sudo apt-get install -y gdal-bin libgdal-dev
139-
export GDAL_VERSION=$(gdal-config --version)
140-
pip3 install --only-binary=:all: GDAL==$GDAL_VERSION
141152
shell: bash
142153
- name: setup test data ⚙️
143154
run: |

0 commit comments

Comments
 (0)