Skip to content

Commit c5d47b8

Browse files
committed
Support Postgres 13
1 parent 0e55e0a commit c5d47b8

File tree

4 files changed

+29
-0
lines changed

4 files changed

+29
-0
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,14 @@ jobs:
1919
run: env USE_DOCKER=1 POSTGRES_VERSION=11 ./build-and-test.sh
2020
- name: Test on PG12
2121
run: env USE_DOCKER=1 POSTGRES_VERSION=12 ./build-and-test.sh
22+
- name: Test on PG13
23+
run: env USE_DOCKER=1 POSTGRES_VERSION=13 ./build-and-test.sh
2224
- name: Build for PG11
2325
run: env POSTGRES_VERSION=11 ./docker-build-dist.sh
2426
- name: Build for PG12
2527
run: env POSTGRES_VERSION=12 ./docker-build-dist.sh
28+
- name: Build for PG13
29+
run: env POSTGRES_VERSION=13 ./docker-build-dist.sh
2630
- name: Create Release
2731
id: create_release
2832
uses: actions/create-release@v1
@@ -51,3 +55,12 @@ jobs:
5155
asset_path: ./dist/postgres-protobuf-${{ steps.get_version.outputs.VERSION }}-linux-x86_64-for-pg12.tar.gz
5256
asset_name: postgres-protobuf-${{ steps.get_version.outputs.VERSION }}-linux-x86_64-for-pg12.tar.gz
5357
asset_content_type: application/gzip
58+
- name: Upload PG13 tarball
59+
uses: actions/upload-release-asset@v1
60+
env:
61+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
62+
with:
63+
upload_url: ${{ steps.create_release.outputs.upload_url }}
64+
asset_path: ./dist/postgres-protobuf-${{ steps.get_version.outputs.VERSION }}-linux-x86_64-for-pg13.tar.gz
65+
asset_name: postgres-protobuf-${{ steps.get_version.outputs.VERSION }}-linux-x86_64-for-pg13.tar.gz
66+
asset_content_type: application/gzip

.github/workflows/tests-pg13.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Tests on PG13
2+
3+
on: [push]
4+
5+
jobs:
6+
7+
build:
8+
9+
runs-on: ubuntu-18.04
10+
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Build and run tests in Docker
14+
run: env USE_DOCKER=1 POSTGRES_VERSION=13 ./build-and-test.sh

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
![Tests on PG11](https://github.com/mpartel/postgres-protobuf/workflows/Tests%20on%20PG11/badge.svg)
44
![Tests on PG12](https://github.com/mpartel/postgres-protobuf/workflows/Tests%20on%20PG12/badge.svg)
5+
![Tests on PG13](https://github.com/mpartel/postgres-protobuf/workflows/Tests%20on%20PG13/badge.svg)
56

67
Features:
78

postgres_protobuf.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ extern "C" {
1616
#include <catalog/pg_type.h>
1717
#include <fmgr.h>
1818
#include <funcapi.h>
19+
#include <utils/array.h>
1920
#include <utils/lsyscache.h>
2021
} // extern "C"
2122

0 commit comments

Comments
 (0)