Skip to content

Commit 2c1c972

Browse files
committed
Build for Postgres 16 & 17
1 parent b632b61 commit 2c1c972

File tree

4 files changed

+56
-0
lines changed

4 files changed

+56
-0
lines changed

.github/workflows/release.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ jobs:
2525
run: env USE_DOCKER=1 POSTGRES_VERSION=14 ./build-and-test.sh
2626
- name: Test on PG15
2727
run: env USE_DOCKER=1 POSTGRES_VERSION=15 ./build-and-test.sh
28+
- name: Test on PG16
29+
run: env USE_DOCKER=1 POSTGRES_VERSION=16 ./build-and-test.sh
30+
- name: Test on PG17
31+
run: env USE_DOCKER=1 POSTGRES_VERSION=17 ./build-and-test.sh
2832
- name: Build for PG11
2933
run: env POSTGRES_VERSION=11 ./docker-build-dist.sh
3034
- name: Build for PG12
@@ -35,6 +39,10 @@ jobs:
3539
run: env POSTGRES_VERSION=14 ./docker-build-dist.sh
3640
- name: Build for PG15
3741
run: env POSTGRES_VERSION=15 ./docker-build-dist.sh
42+
- name: Build for PG16
43+
run: env POSTGRES_VERSION=16 ./docker-build-dist.sh
44+
- name: Build for PG17
45+
run: env POSTGRES_VERSION=17 ./docker-build-dist.sh
3846
- name: Create Release
3947
id: create_release
4048
uses: actions/create-release@v1
@@ -90,3 +98,21 @@ jobs:
9098
asset_path: ./dist/postgres-protobuf-${{ steps.get_version.outputs.VERSION }}-linux-x86_64-for-pg15.tar.gz
9199
asset_name: postgres-protobuf-${{ steps.get_version.outputs.VERSION }}-linux-x86_64-for-pg15.tar.gz
92100
asset_content_type: application/gzip
101+
- name: Upload PG16 tarball
102+
uses: actions/upload-release-asset@v1
103+
env:
104+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
105+
with:
106+
upload_url: ${{ steps.create_release.outputs.upload_url }}
107+
asset_path: ./dist/postgres-protobuf-${{ steps.get_version.outputs.VERSION }}-linux-x86_64-for-pg16.tar.gz
108+
asset_name: postgres-protobuf-${{ steps.get_version.outputs.VERSION }}-linux-x86_64-for-pg16.tar.gz
109+
asset_content_type: application/gzip
110+
- name: Upload PG17 tarball
111+
uses: actions/upload-release-asset@v1
112+
env:
113+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
114+
with:
115+
upload_url: ${{ steps.create_release.outputs.upload_url }}
116+
asset_path: ./dist/postgres-protobuf-${{ steps.get_version.outputs.VERSION }}-linux-x86_64-for-pg17.tar.gz
117+
asset_name: postgres-protobuf-${{ steps.get_version.outputs.VERSION }}-linux-x86_64-for-pg17.tar.gz
118+
asset_content_type: application/gzip

.github/workflows/tests-pg16.yml

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

.github/workflows/tests-pg17.yml

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

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
[![Tests on PG13](https://github.com/mpartel/postgres-protobuf/actions/workflows/tests-pg13.yml/badge.svg?branch=master)](https://github.com/mpartel/postgres-protobuf/actions/workflows/tests-pg13.yml)
55
[![Tests on PG14](https://github.com/mpartel/postgres-protobuf/actions/workflows/tests-pg14.yml/badge.svg?branch=master)](https://github.com/mpartel/postgres-protobuf/actions/workflows/tests-pg14.yml)
66
[![Tests on PG15](https://github.com/mpartel/postgres-protobuf/actions/workflows/tests-pg15.yml/badge.svg?branch=master)](https://github.com/mpartel/postgres-protobuf/actions/workflows/tests-pg15.yml)
7+
[![Tests on PG16](https://github.com/mpartel/postgres-protobuf/actions/workflows/tests-pg16.yml/badge.svg?branch=master)](https://github.com/mpartel/postgres-protobuf/actions/workflows/tests-pg16.yml)
8+
[![Tests on PG17](https://github.com/mpartel/postgres-protobuf/actions/workflows/tests-pg17.yml/badge.svg?branch=master)](https://github.com/mpartel/postgres-protobuf/actions/workflows/tests-pg17.yml)
79

810
Features:
911

0 commit comments

Comments
 (0)