Use a newly installed server to run regression tests. #39
Workflow file for this run
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: 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 --with-python --with-perl --with-tcl | |
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 |