diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml new file mode 100644 index 00000000..c8ddd971 --- /dev/null +++ b/.github/workflows/c-cpp.yml @@ -0,0 +1,38 @@ +name: 'C/C++ CI for the stable11' + +on: + push: + branches: [ stable11 ] + pull_request: + branches: [ stable11 ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: pg + run: | + echo "Deploying to production server on branch $GITHUB_REF" + git config --global user.email "ci@postgrespro.ru" + git config --global user.name "CI PgPro admin" + git clone https://github.com/postgres/postgres.git pg + cd pg + git checkout REL_11_STABLE + ./configure --prefix=`pwd`/tmp_install + git subtree add --prefix=contrib/aqo https://github.com/postgrespro/aqo.git $GITHUB_REF + patch -p1 --no-backup-if-mismatch < contrib/aqo/aqo_pg11.patch + make -j4 > /dev/null && make -j4 -C contrib > /dev/null + make -C contrib/aqo check + + git reset --hard HEAD + git clean -fdx + + # Test for PG10 + git checkout REL_10_STABLE + ./configure --prefix=`pwd`/tmp_install + git subtree add --prefix=contrib/aqo https://github.com/postgrespro/aqo.git $GITHUB_REF + patch -p1 --no-backup-if-mismatch < contrib/aqo/aqo_pg11.patch + make -j4 > /dev/null && make -j4 -C contrib > /dev/null + make -C contrib/aqo check