-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (39 loc) · 1.48 KB
/
build-and-test.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
name: Build and Test
on: [push, pull_request]
jobs:
ubuntu:
runs-on: ubuntu-22.04
if: ${{ !startsWith(github.ref_name, 'mac') && !startsWith(github.ref_name, 'windows') }}
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
with:
submodules: true
- run: |
git clone https://github.com/postgres/postgres --depth=1 pg
cd pg
./configure --prefix=/usr/lib/postgresql/master --enable-cassert --enable-debug
make install-world-bin -j4
## - run: make
## env:
## PG_CFLAGS: -Wall -Wextra -Werror -Wno-unused-parameter -Wno-sign-compare
## - run: |
## export PG_CONFIG=`which pg_config`
## sudo --preserve-env=PG_CONFIG make install
## - run: |
## sudo usermod -a -G docker postgres
## mkdir -p pg/src/test/regress/results
## sudo chmod 0777 -R pg/src/test/regress/
##
## ## initdb -D/tmp/data -c unix_socket_directories=/tmp
## ## echo "jit='on'" >> /tmp/data/postgresql.conf
## ## echo "jit_provider='asmjit'" >> /tmp/data/postgresql.conf
## ## echo "jit_above_cost=0" >> /tmp/data/postgresql.conf
## ## pg_ctl -D/tmp/data -l/tmp/logfile start
##
## cd pg
## ./configure --prefix=/usr/lib/postgresql/${{ matrix.postgres }}
## PGPORT=5432 PGHOST=127.0.0.1 make installcheck
- if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3