bump github workflow versions (#216) #260
This file contains 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 Tests | |
on: [push] | |
concurrency: | |
group: ci-${{github.ref}}-build-options-tests | |
cancel-in-progress: true | |
jobs: | |
build_test: | |
if: github.repository == 'MerginMaps/geodiff' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Geodiff | |
uses: actions/checkout@v3 | |
- name: install deps | |
run: | | |
sudo apt-get update | |
sudo apt-get install libpq-dev | |
sudo apt-get install libc6-dbg gdb | |
sudo apt-get install postgresql-14 postgresql-contrib-14 postgresql-14-postgis-3 postgresql-common postgis | |
- name: build geodiff static only | |
run: | | |
mkdir -p build_static_only | |
cd build_static_only | |
cmake \ | |
-DCMAKE_BUILD_TYPE=Release \ | |
-DENABLE_TESTS=OFF \ | |
-DWITH_POSTGRESQL=FALSE \ | |
-DBUILD_STATIC=TRUE \ | |
-DBUILD_SHARED=FALSE \ | |
../geodiff | |
make -j`nproc` | |
- name: build geodiff shared only | |
run: | | |
mkdir -p build_shared_only | |
cd build_shared_only | |
cmake \ | |
-DCMAKE_BUILD_TYPE=Release \ | |
-DENABLE_TESTS=OFF \ | |
-DWITH_POSTGRESQL=FALSE \ | |
-DBUILD_STATIC=FALSE \ | |
-DBUILD_SHARED=TRUE \ | |
../geodiff | |
make -j`nproc` | |
- name: build geodiff shared pg | |
run: | | |
mkdir -p build_shared_pg | |
cd build_shared_pg | |
cmake \ | |
-DCMAKE_BUILD_TYPE=Release \ | |
-DENABLE_TESTS=OFF \ | |
-DWITH_POSTGRESQL=TRUE \ | |
-DBUILD_STATIC=TRUE \ | |
-DBUILD_SHARED=FALSE \ | |
../geodiff | |
make -j`nproc` | |
- name: build geodiff tools | |
run: | | |
mkdir -p build_shared_pg | |
cd build_shared_pg | |
cmake \ | |
-DCMAKE_BUILD_TYPE=Release \ | |
-DENABLE_TESTS=OFF \ | |
-DWITH_POSTGRESQL=FALSE \ | |
-DBUILD_STATIC=FALSE \ | |
-DBUILD_SHARED=FALSE \ | |
-DBUILD_TOOLS=TRUE \ | |
../geodiff | |
make -j`nproc` |