Skip to content

Commit

Permalink
Add action to check MEOS compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
mschoema committed Oct 9, 2024
1 parent 938ec62 commit f18a0c4
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/meos.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Test MEOS compilation

on:
workflow_dispatch:
push:
paths:
- '.github/workflows/meos.yml'
- 'cmake/**'
- 'meos/**'
- 'mobilitydb/**'
- 'postgis/**'
- 'CMakeLists.txt'
branch_ignore: gh-pages
pull_request:
paths:
- '.github/workflows/meos.yml'
- 'cmake/**'
- 'meos/**'
- 'mobilitydb/**'
- 'postgis/**'
- 'CMakeLists.txt'
branch_ignore: gh-pages

jobs:
build:
name: Build
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
libgeos-dev \
libproj-dev \
libjson-c-dev \
libgsl-dev
- name: Configure for gcc
run: |
export PATH=/usr/lib/postgresql/${{ matrix.psql }}/bin:$PATH
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DWITH_COVERAGE=${{ matrix.coverage }} ..
- name: Build
run: |
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Debug -DMEOS=on ..
make -j $(nproc)
sudo make install
- name: Compile and run 01_hello_world.c
run: |
cd meos/examples
gcc -Wall -g -I/usr/local/include -o 01_hello_world 01_hello_world.c -L/usr/local/lib -lmeos
./01_hello_world

0 comments on commit f18a0c4

Please sign in to comment.