@@ -2,44 +2,44 @@ name: Build / Regression
22
33on :
44 push :
5- branches : [ "master " ]
5+ branches : [ "PG19 " ]
66
77 pull_request :
8- branches : [ "master " ]
8+ branches : [ "PG19 " ]
99
1010jobs :
1111 build :
1212 runs-on : ubuntu-latest
1313
1414 steps :
15- - name : Get latest commit id of PostgreSQL 18
15+ - name : Get latest commit id of PostgreSQL 19
1616 run : |
17- echo "PG_COMMIT_HASH=$(git ls-remote https://git.postgresql.org/git/postgresql.git refs/heads/REL_18_STABLE | awk '{print $1}')" >> $GITHUB_ENV
17+ echo "PG_COMMIT_HASH=$(git ls-remote https://git.postgresql.org/git/postgresql.git refs/tags/REL_19_BETA1 | awk '{print $1}')" >> $GITHUB_ENV
1818
19- - name : Cache PostgreSQL 18
19+ - name : Cache PostgreSQL 19
2020 uses : actions/cache@v3
21- id : pg18cache
21+ id : pg19cache
2222 with :
23- path : ~/pg18
24- key : ${{ runner.os }}-v1-pg18 -${{ env.PG_COMMIT_HASH }}
23+ path : ~/pg19
24+ key : ${{ runner.os }}-v1-pg19 -${{ env.PG_COMMIT_HASH }}
2525
2626 - name : Install necessary dependencies
2727 run : |
2828 sudo apt-get update
2929 sudo apt-get install -y build-essential libreadline-dev zlib1g-dev flex bison
3030
31- - name : Install PostgreSQL 18 and some extensions
32- if : steps.pg18cache .outputs.cache-hit != 'true'
31+ - name : Install PostgreSQL 19 and some extensions
32+ if : steps.pg19cache .outputs.cache-hit != 'true'
3333 run : |
34- git clone --depth 1 --branch REL_18_STABLE https://git.postgresql.org/git/postgresql.git ~/pg18source
35- cd ~/pg18source
36- ./configure --prefix=$HOME/pg18 CFLAGS="-std=gnu99 -ggdb -O0" --enable-cassert
34+ git clone --depth 1 --branch REL_19_BETA1 https://git.postgresql.org/git/postgresql.git ~/pg19source
35+ cd ~/pg19source
36+ ./configure --prefix=$HOME/pg19 CFLAGS="-std=gnu99 -ggdb -O0" --enable-cassert
3737 make install -j$(nproc) > /dev/null
3838 cd contrib
3939 cd fuzzystrmatch
40- make PG_CONFIG=$HOME/pg18 /bin/pg_config install -j$(nproc) > /dev/null
40+ make PG_CONFIG=$HOME/pg19 /bin/pg_config install -j$(nproc) > /dev/null
4141 cd ../pg_trgm
42- make PG_CONFIG=$HOME/pg18 /bin/pg_config install -j$(nproc) > /dev/null
42+ make PG_CONFIG=$HOME/pg19 /bin/pg_config install -j$(nproc) > /dev/null
4343
4444 - uses : actions/checkout@v3
4545 with :
@@ -48,19 +48,19 @@ jobs:
4848 - name : Build AGE
4949 id : build
5050 run : |
51- make PG_CONFIG=$HOME/pg18 /bin/pg_config COPT=-Werror install -j$(nproc)
51+ make PG_CONFIG=$HOME/pg19 /bin/pg_config COPT=-Werror install -j$(nproc)
5252
5353 - name : Pull and build pgvector
5454 id : pgvector
5555 run : |
5656 git clone https://github.com/pgvector/pgvector.git
5757 cd pgvector
58- make PG_CONFIG=$HOME/pg18 /bin/pg_config install -j$(nproc) > /dev/null
58+ make PG_CONFIG=$HOME/pg19 /bin/pg_config install -j$(nproc) > /dev/null
5959
6060 - name : Regression tests
6161 id : regression_tests
6262 run : |
63- make PG_CONFIG=$HOME/pg18 /bin/pg_config installcheck EXTRA_TESTS="pgvector fuzzystrmatch pg_trgm"
63+ make PG_CONFIG=$HOME/pg19 /bin/pg_config installcheck EXTRA_TESTS="pgvector fuzzystrmatch pg_trgm"
6464 continue-on-error : true
6565
6666 - name : Dump regression test errors
0 commit comments