Skip to content

Commit 50efe44

Browse files
committed
Build for Postgres 14.
1 parent b28ca38 commit 50efe44

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,16 @@ jobs:
2121
run: env USE_DOCKER=1 POSTGRES_VERSION=12 ./build-and-test.sh
2222
- name: Test on PG13
2323
run: env USE_DOCKER=1 POSTGRES_VERSION=13 ./build-and-test.sh
24+
- name: Test on PG14
25+
run: env USE_DOCKER=1 POSTGRES_VERSION=14 ./build-and-test.sh
2426
- name: Build for PG11
2527
run: env POSTGRES_VERSION=11 ./docker-build-dist.sh
2628
- name: Build for PG12
2729
run: env POSTGRES_VERSION=12 ./docker-build-dist.sh
2830
- name: Build for PG13
2931
run: env POSTGRES_VERSION=13 ./docker-build-dist.sh
32+
- name: Build for PG14
33+
run: env POSTGRES_VERSION=14 ./docker-build-dist.sh
3034
- name: Create Release
3135
id: create_release
3236
uses: actions/create-release@v1
@@ -64,3 +68,12 @@ jobs:
6468
asset_path: ./dist/postgres-protobuf-${{ steps.get_version.outputs.VERSION }}-linux-x86_64-for-pg13.tar.gz
6569
asset_name: postgres-protobuf-${{ steps.get_version.outputs.VERSION }}-linux-x86_64-for-pg13.tar.gz
6670
asset_content_type: application/gzip
71+
- name: Upload PG14 tarball
72+
uses: actions/upload-release-asset@v1
73+
env:
74+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
75+
with:
76+
upload_url: ${{ steps.create_release.outputs.upload_url }}
77+
asset_path: ./dist/postgres-protobuf-${{ steps.get_version.outputs.VERSION }}-linux-x86_64-for-pg14.tar.gz
78+
asset_name: postgres-protobuf-${{ steps.get_version.outputs.VERSION }}-linux-x86_64-for-pg14.tar.gz
79+
asset_content_type: application/gzip

.github/workflows/tests-pg14 yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Tests on PG14
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=14 ./build-and-test.sh

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
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)
55
![Tests on PG13](https://github.com/mpartel/postgres-protobuf/workflows/Tests%20on%20PG13/badge.svg)
6+
![Tests on PG14](https://github.com/mpartel/postgres-protobuf/workflows/Tests%20on%20PG14/badge.svg)
67

78
Features:
89

@@ -125,7 +126,7 @@ before relying on it too heavily in a design.
125126

126127
### Security
127128

128-
This extension is fairly new and written in C++, so some caution is warranted.
129+
This extension is written in C++, so some caution is warranted.
129130
It's may be unwise to give it untrusted queries or protobuf data that you haven't
130131
parsed and reserialized first. Conversion to/from JSON should be safer since it
131132
thinly wraps the well-tested protobuf library, but see the note about memory management below.

0 commit comments

Comments
 (0)