Skip to content

Commit

Permalink
added explicit gdal deps installation to GH actions, even if tests sk…
Browse files Browse the repository at this point in the history
…ipped
  • Loading branch information
sllynn committed Nov 9, 2023
1 parent fd853bb commit 43a7ae8
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/actions/scala_build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,24 @@ runs:
with:
java-version: '8'
distribution: 'zulu'
- name: Configure python interpreter
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Add packaged GDAL dependencies
shell: bash
run : |
pip install databricks-mosaic-gdal==${{ matrix.gdal }}
sudo tar -xf /home/runner/.local/lib/python${{ matrix.python }}/site-packages/databricks-mosaic-gdal/resources/gdal-${{ matrix.gdal }}-filetree.tar.xz -C /
sudo tar -xhf /home/runner/.local/lib/python${{ matrix.python }}/site-packages/databricks-mosaic-gdal/resources/gdal-${{ matrix.gdal }}-symlinks.tar.xz -C /
- name: Test and build the scala JAR - skip tests is false
if: inputs.skip_tests == 'false'
shell: bash
run: |
pip install databricks-mosaic-gdal==3.4.3
sudo tar -xf /home/runner/.local/lib/python3.8/site-packages/databricks-mosaic-gdal/resources/gdal-3.4.3-filetree.tar.xz -C /
sudo tar -xhf /home/runner/.local/lib/python3.8/site-packages/databricks-mosaic-gdal/resources/gdal-3.4.3-symlinks.tar.xz -C /
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt clean && sudo apt -o Acquire::Retries=3 update --fix-missing -y
sudo apt-get -o Acquire::Retries=3 update -y
sudo apt-get -o Acquire::Retries=3 install -y gdal-bin=3.4.3+dfsg-1~focal0 libgdal-dev=3.4.3+dfsg-1~focal0 python3-gdal=3.4.3+dfsg-1~focal0
sudo apt-get -o Acquire::Retries=3 install -y gdal-bin=${{ matrix.gdal }}+dfsg-1~focal0 libgdal-dev=${{ matrix.gdal }}+dfsg-1~focal0 python3-gdal=${{ matrix.gdal }}+dfsg-1~focal0
sudo mvn -q clean install
- name: Build the scala JAR - skip tests is true
if: inputs.skip_tests == 'true'
Expand Down

0 comments on commit 43a7ae8

Please sign in to comment.