CI: ubuntu-20.04 deprecated on 2025-02-01 #164
Workflow file for this run
This file contains hidden or 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: Build MapCache on Linux | |
| on: [ push, pull_request ] | |
| jobs: | |
| build-matrix: | |
| strategy: | |
| matrix: | |
| os: [ ubuntu-latest ] | |
| option: [ minimal, default, maximal ] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: | | |
| if [[ 'minimal,default,maximal' =~ ${{ matrix.option }} ]] | |
| then | |
| sudo add-apt-repository -y ppa:ubuntugis/ppa | |
| sudo apt update -y | |
| sudo apt upgrade -y | |
| sudo apt install -y libcurl4-openssl-dev apache2-dev | |
| sudo apt install -y libpng-dev libjpeg-dev | |
| fi | |
| if [[ 'default,maximal' =~ ${{ matrix.option }} ]] | |
| then | |
| sudo apt install -y libgdal-dev libfcgi-dev libpixman-1-dev | |
| sudo apt install -y gdal-bin libxml2-utils | |
| fi | |
| if [[ 'maximal' =~ ${{ matrix.option }} ]] | |
| then | |
| sudo apt install -y libhiredis-dev libdb-dev libmapserver-dev libpcre2-dev | |
| fi | |
| - name: Build MapCache | |
| run: | | |
| if [[ 'minimal' == ${{ matrix.option }} ]] | |
| then | |
| options="-DWITH_SQLITE=OFF \ | |
| -DWITH_PIXMAN=OFF \ | |
| -DWITH_GDAL=OFF \ | |
| -DWITH_APACHE=OFF \ | |
| -DWITH_CGI=OFF \ | |
| -DWITH_OGR=OFF \ | |
| -DWITH_GEOS=OFF \ | |
| -DWITH_MAPCACHE_DETAIL=OFF" | |
| elif [[ 'default' == ${{ matrix.option }} ]] | |
| then | |
| options="" | |
| elif [[ 'maximal' == ${{ matrix.option }} ]] | |
| then | |
| options="-DWITH_POSTGRESQL=ON \ | |
| -DWITH_BERKELEY_DB=ON \ | |
| -DWITH_MEMCACHE=ON \ | |
| -DWITH_REDIS=ON \ | |
| -DWITH_TIFF=ON \ | |
| -DWITH_TIFF_WRITE_SUPPORT=ON \ | |
| -DWITH_GEOTIFF=ON \ | |
| -DWITH_PCRE=OFF \ | |
| -DWITH_PCRE2=ON \ | |
| -DWITH_MAPSERVER=ON \ | |
| -DWITH_RIAK=OFF" | |
| fi | |
| mkdir build | |
| cd build | |
| cmake ${options} ${{ github.workspace }} | |
| make | |
| sudo make install | |
| sudo ldconfig | |
| - name: Run tests | |
| run: | | |
| if [[ 'ubuntu-latest' == ${{ matrix.os }} ]] \ | |
| && [[ 'default' == ${{ matrix.option }} ]] | |
| then | |
| cd ${{ github.workspace }}/tests | |
| ./setup.sh | |
| ./run.sh | |
| else | |
| echo No test performed on this target | |
| fi |