Enable using MeosArray beyond parsing #1972
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 macOS | |
| on: | |
| workflow_dispatch: | |
| push: | |
| paths: | |
| - '.github/workflows/macos.yml' | |
| - 'cmake/**' | |
| - 'meos/**' | |
| - 'mobilitydb/**' | |
| - 'postgis/**' | |
| - 'CMakeLists.txt' | |
| branch_ignore: gh-pages | |
| pull_request: | |
| paths: | |
| - '.github/workflows/macos.yml' | |
| - 'cmake/**' | |
| - 'meos/**' | |
| - 'mobilitydb/**' | |
| - 'postgis/**' | |
| - 'CMakeLists.txt' | |
| branch_ignore: gh-pages | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ macos-14, macos-15 ] | |
| psql: [ 17, 18 ] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Get dependencies from homebrew (cache) | |
| uses: tecolicom/actions-use-homebrew-tools@v1 | |
| with: | |
| tools: postgresql@${{ matrix.psql }} postgis proj gsl | |
| - name: Configure | |
| run: | | |
| mkdir build | |
| cd build | |
| cmake -DPOSTGRESQL_BIN="/opt/homebrew/opt/postgresql@${{ matrix.psql }}/bin" -DCMAKE_BUILD_TYPE=Release .. | |
| - name: Build | |
| run: | | |
| cd build | |
| make -j | |
| sudo make install | |
| - name: test installation | |
| run: | | |
| export PATH="/opt/homebrew/opt/postgresql@${{ matrix.psql }}/bin:$PATH" | |
| mkdir -p $HOME/pgdata | |
| initdb -D $HOME/pgdata -E UTF8 --locale=C | |
| pg_ctl -D $HOME/pgdata -l logfile start | |
| createdb ___mobdb___test___ | |
| psql -d ___mobdb___test___ -c "CREATE EXTENSION mobilitydb CASCADE; SELECT postgis_full_version(); SELECT mobilitydb_full_version();" | |
| - name: Test | |
| run: | | |
| cd build | |
| make test |