forked from postgis/postgis
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (54 loc) · 1.6 KB
/
msys.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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