only build versions for postgres 13 and 16 #5
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: MSYS2 | |
on: [push, pull_request] | |
jobs: | |
mingw: | |
# TODO: check to see if we need to disable again | |
#if: github.repository == 'master' | |
if: false | |
name: mingw | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
#fail-fast: false | |
include: | |
# mingw32 fail: addface | |
# - { icon: '🟦', sys: mingw64 } | |
# - { icon: '🟨', sys: ucrt64 } # Experimental! | |
- { icon: '🟧', sys: clang64 } # Experimental! | |
defaults: | |
run: | |
shell: msys2 {0} | |
steps: | |
# see https://github.com/msys2/setup-msys2 | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: '${{ matrix.icon }} Setup MSYS2' | |
uses: msys2/setup-msys2@v2 | |
with: | |
msystem: ${{ matrix.sys }} | |
update: true | |
install: >- | |
git | |
make | |
bison | |
pacboy: >- | |
toolchain:p | |
autotools:p | |
geos:p | |
proj:p | |
gdal:p | |
sfcgal:p | |
json-c:p | |
gettext:p | |
libxml2:p | |
postgresql:p | |
- name: '🚧 Build TOOL' | |
run: | | |
MSYSTEM= /${{ matrix.sys }}/bin/initdb -D D:/a/_tmp/psql | |
MSYSTEM= /${{ matrix.sys }}/bin/pg_ctl -D D:/a/_tmp/psql -l logfile start | |
MSYSTEM= /${{ matrix.sys }}/bin/pg_ctl register -N "postgresql" -U "NT AUTHORITY\NetworkService" -D D:/a/_tmp/psql -w -S demand | |
MSYSTEM= /${{ matrix.sys }}/bin/createuser -U `whoami` -s postgres | |
MSYSTEM= ./autogen.sh | |
MSYSTEM= ./configure --with-pgconfig=/${{ matrix.sys }}/bin/pg_config --without-protobuf | |
MSYSTEM= make | |
MSYSTEM= make check |