[PG12] Add auto apply labeler workflow for PRs #587
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: PG12 Regression | |
on: | |
push: | |
branches: [ 'PG12' ] | |
pull_request: | |
branches: [ 'PG12' ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get latest commit id of PostgreSQL 12 | |
run: | | |
echo "PG_COMMIT_HASH=$(git ls-remote git://git.postgresql.org/git/postgresql.git refs/heads/REL_12_STABLE | awk '{print $1}')" >> $GITHUB_ENV | |
- name: Cache PostgreSQL 12 | |
uses: actions/cache@v3 | |
id: pg12cache | |
with: | |
path: ~/pg12 | |
key: ${{ runner.os }}-v1-pg12-${{ env.PG_COMMIT_HASH }} | |
- name: Install PostgreSQL 12 | |
if: steps.pg12cache.outputs.cache-hit != 'true' | |
run: | | |
git clone --depth 1 --branch REL_12_STABLE git://git.postgresql.org/git/postgresql.git ~/pg12source | |
cd ~/pg12source | |
./configure --prefix=$HOME/pg12 CFLAGS="-std=gnu99 -ggdb -O0" --enable-cassert | |
make install -j$(nproc) > /dev/null | |
- uses: actions/checkout@v3 | |
- name: Build | |
id: build | |
run: | | |
make PG_CONFIG=$HOME/pg12/bin/pg_config install -j$(nproc) | |
- name: Regression tests | |
id: regression_tests | |
run: | | |
make PG_CONFIG=$HOME/pg12/bin/pg_config installcheck | |
continue-on-error: true | |
- name: Dump regression test errors | |
if: steps.regression_tests.outcome != 'success' | |
run: | | |
echo "Dump section begin." | |
cat $HOME/work/age/age/regress/regression.diffs | |
echo "Dump section end." | |
exit 1 |