|
| 1 | +name:'C/C++ CI for the stable12 branch' |
| 2 | + |
| 3 | +on: |
| 4 | +push: |
| 5 | +branches:[ stable12* ] |
| 6 | +pull_request: |
| 7 | +branches:[ stable12* ] |
| 8 | + |
| 9 | +jobs: |
| 10 | +build: |
| 11 | + |
| 12 | +runs-on:ubuntu-latest |
| 13 | + |
| 14 | +steps: |
| 15 | + -name:Install additional packages |
| 16 | +run:sudo apt-get install -y libperl-dev libipc-run-perl |
| 17 | + -name:pg |
| 18 | +run:| |
| 19 | + echo "Deploying to production server on branch $GITHUB_REF" |
| 20 | + git config --global user.email "ci@postgrespro.ru" |
| 21 | + git config --global user.name "CI PgPro admin" |
| 22 | + git clone https://github.com/postgres/postgres.git pg |
| 23 | + cd pg |
| 24 | + git checkout REL_12_STABLE |
| 25 | + ./configure --prefix=`pwd`/tmp_install |
| 26 | + git subtree add --prefix=contrib/aqo https://github.com/postgrespro/aqo.git $GITHUB_REF |
| 27 | + patch -p1 --no-backup-if-mismatch < contrib/aqo/aqo_pg13.patch |
| 28 | + make -j4 > /dev/null && make -j4 -C contrib > /dev/null |
| 29 | + make -C contrib/aqo check |