Skip to content

Correctly call function pointers in arm64 #447

Correctly call function pointers in arm64

Correctly call function pointers in arm64 #447

Workflow file for this run

name: Build for Windows
on:
workflow_dispatch:
push:
paths:
- '.github/workflows/windows_msys2.yml'
- 'cmake/**'
- 'meos/**'
- 'mobilitydb/**'
- 'postgis/**'
- 'CMakeLists.txt'
branch_ignore: gh-pages
pull_request:
paths:
- '.github/workflows/windows_msys2.yml'
- 'cmake/**'
- 'meos/**'
- 'mobilitydb/**'
- 'postgis/**'
- 'CMakeLists.txt'
branch_ignore: gh-pages
jobs:
build:
name: windows
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: 'Setup'
uses: msys2/setup-msys2@v2
with:
msystem: UCRT64
update: true
install: >-
mingw-w64-ucrt-x86_64-gcc
mingw-w64-ucrt-x86_64-cmake
mingw-w64-ucrt-x86_64-ninja
mingw-w64-ucrt-x86_64-postgresql
mingw-w64-ucrt-x86_64-postgis
mingw-w64-ucrt-x86_64-gsl
- name: Configure
run: |
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
- name: Build
run: |
cd build
cmake --build .
cmake --install .
- name: Test install
run: |
# Create a new PostgreSQL database cluster
export PGDATA="D:/a/_temp/msys64/usr/local/pgsql/data"
initdb
# Configure PostgreSQL for MobilityDB
{
echo "port = 5432"
echo "shared_preload_libraries = 'postgis-3.dll'"
echo "max_locks_per_transaction = 128"
} >> "${PGDATA}/postgresql.conf"
# Start PostgreSQL
pg_ctl start
# Create database and add the MobilityDB extension
createdb -U runneradmin mydb
psql -p 5432 -U runneradmin -d mydb -c "CREATE EXTENSION mobilitydb CASCADE; SELECT postgis_full_version(); SELECT mobilitydb_full_version(); SELECT tfloat '[1@2000-01-01]';"
# - name: Run tests
# run: |
# cd build
# ctest --output-on-failure