Skip to content

Commit

Permalink
Test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
vitcpp committed Nov 1, 2024
1 parent dcdc52f commit e0c191e
Showing 1 changed file with 67 additions and 0 deletions.
67 changes: 67 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: My Test

on:
workflow_dispatch:

jobs:
test:

runs-on: windows-latest

strategy:
fail-fast: false

name: Test

defaults:
run:
shell: msys2 {0}

steps:

- name: Install MSYS2
uses: msys2/setup-msys2@v2
with:
msystem: mingw64
install: >-
curl
git
make
icu
perl
flex
bison
zlib
zlib-devel
mingw-w64-x86_64-gcc
- name: Install PostgreSQL
run: |
git clone --single-branch -b REL_16_STABLE git://git.postgresql.org/git/postgresql.git
cd ${GITHUB_WORKSPACE}/postgresql
./configure --prefix=${GITHUB_WORKSPACE}/install --enable-cassert --without-icu
make -j$(nproc)
make install
- name: Clone pgSphere
uses: actions/checkout@v4
with:
ref: 'master'
fetch-depth: 1

- name: Build pgSphere
run: |
export PATH=${{ github.workspace }}/install/bin:$PATH
export LD_LIBRARY_PATH=${{ github.workspace }}/install/lib:$LD_LIBRARY_PATH
echo "PATH: $PATH"
echo "LD_LIBRARY_PATH: $LD_LIBRARY_PATH"
make --keep-going -j$(nproc) -Wall PROFILE='-Werror -Wall' USE_HEALPIX=0
#- name: Build pgSphere
# run: make USE_HEALPIX=0

#- name: Setup PostgreSQL
# uses: tj-actions/install-postgresql@v3
# with:
# postgresql-version: 16

0 comments on commit e0c191e

Please sign in to comment.