Skip to content

Add CMake build support (#27) #49

Add CMake build support (#27)

Add CMake build support (#27) #49

Workflow file for this run

---
name: Build on Ubuntu
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Get dependencies
run: |
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update -y
sudo apt-get install -y wget git gawk findutils
xargs -a <(awk '! /^ *(#|$)/' ".github/workflows/apt.txt") -r -- \
sudo apt-get install -y --no-install-recommends \
--no-install-suggests
- name: Create GDAL_AUTOLOAD directory
run: |
mkdir $HOME/gdalplugins
- name: Setup test data
run: |
mkdir -p $HOME/grassdata
cd $HOME/grassdata/
wget -c --quiet https://grass.osgeo.org/sampledata/north_carolina/nc_spm_08_micro.zip
unzip nc_spm_08_micro.zip
rm -f nc_spm_08_micro.zip
- name: Build
run: .github/workflows/build_ubuntu.sh $HOME/gdalplugins
- name: Test executing of GDAL with driver on GRASS maps
run: .github/workflows/test_simple.sh $HOME/gdalplugins
- name: Build with CMake
run: .github/workflows/build_ubuntu_cmake.sh $HOME/gdalplugins_cmake
- name: Test executing of GDAL with driver on GRASS maps (CMake)
run: .github/workflows/test_simple.sh $HOME/gdalplugins_cmake