-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (32 loc) · 1.16 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
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: |
# Install PostgreSQL server.
git clone https://github.com/postgres/postgres --depth=1 pg
cd pg
./configure --prefix=$HOME/.local/pg --enable-cassert --enable-debug
make install-world-bin -j4
# Install pg_asmjit.
cd ..
PATH=$HOME/.local/pg/bin:$PATH make install -j4
- run: |
export PATH=$HOME/.local/pg/bin:$PATH
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
PGPORT=5432 PGHOST=127.0.0.1 make installcheck
- if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3