Bump minimum required CMake version to 3.10 to fix failure with 4.x. #10
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 for Ubuntu | |
| on: | |
| push: | |
| branches-ignore: | |
| - 'translations_*' | |
| tags: [] | |
| pull_request: | |
| paths-ignore: | |
| - '**.po' | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| psql: [9.6,10,11,12, 13] | |
| postgis: [2.5,3] | |
| os: [ubuntu-latest] | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: get postgres version | |
| run: | | |
| sudo service postgresql start | |
| pgver=$(psql --version | grep -Po '(?<=psql \(PostgreSQL\) )[^;]+(?=\.\d \()') | |
| echo "PGVER=${pgver}" >> $GITHUB_ENV | |
| PGP=5433 | |
| if [ "${{ matrix.psql }}" == "${pgver}" ]; then PGP=5432; fi | |
| echo "PGPORT=${PGP}" >> $GITHUB_ENV | |
| - name: Add PostgreSQL APT repository | |
| run: | | |
| sudo apt-get install curl ca-certificates gnupg | |
| curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - | |
| sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ \ | |
| $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| libboost-program-options-dev \ | |
| libtap-parser-sourcehandler-pgtap-perl \ | |
| postgresql-${{ matrix.psql }} \ | |
| postgresql-${{ matrix.psql }}-pgtap \ | |
| postgresql-${{ matrix.psql }}-postgis-${{ matrix.postgis }} \ | |
| postgresql-${{ matrix.psql }}-postgis-${{ matrix.postgis }}-scripts \ | |
| postgresql-${{ matrix.psql }}-pgrouting \ | |
| libpqxx-dev \ | |
| postgresql-server-dev-${{ matrix.psql }} | |
| - name: Configure | |
| run: | | |
| export PATH=/usr/lib/postgresql/${{ matrix.psql }}/bin:$PATH | |
| mkdir build | |
| cd build | |
| cmake -DPOSTGRESQL_VERSION=${{ matrix.psql }} -DCMAKE_BUILD_TYPE=Release -DWITH_DOC=OFF .. | |
| - name: Build | |
| run: | | |
| cd build | |
| make -j 4 | |
| sudo make install | |
| - name: Test | |
| if: false | |
| run: | | |
| sudo service postgresql start | |
| sudo -u postgres createdb -p ${PGPORT} ___vrp___test___ | |
| sudo -u postgres bash ./tools/testers/pg_prove_tests.sh postgres ${PGPORT} Release |