Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable building on PG17 #798

Merged
merged 7 commits into from
Nov 11, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 86 additions & 1 deletion .github/workflows/builder-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
- "14"
- "15"
- "16"
- "17"
steps:
- name: Check out the repo
uses: actions/checkout@v4
Expand Down Expand Up @@ -161,6 +162,48 @@ jobs:
pgrx_version: "0.9.7"
- pg_version: "16"
pgrx_version: "0.9.8"
- pg_version: "17"
pgrx_version: "0.7.4"
- pg_version: "17"
pgrx_version: "0.8.0"
- pg_version: "17"
pgrx_version: "0.8.3"
- pg_version: "17"
pgrx_version: "0.8.4"
- pg_version: "17"
pgrx_version: "0.9.0"
- pg_version: "17"
pgrx_version: "0.9.1"
- pg_version: "17"
pgrx_version: "0.9.7"
- pg_version: "17"
pgrx_version: "0.9.8"
- pg_version: "17"
pgrx_version: "0.10.0"
- pg_version: "17"
pgrx_version: "0.10.1"
- pg_version: "17"
pgrx_version: "0.10.2"
jasonmp85 marked this conversation as resolved.
Show resolved Hide resolved
- pg_version: "17"
pgrx_version: "0.11.0"
- pg_version: "17"
pgrx_version: "0.11.1"
- pg_version: "17"
pgrx_version: "0.11.2"
- pg_version: "17"
pgrx_version: "0.11.3"
- pg_version: "17"
pgrx_version: "0.11.4"
- pg_version: "17"
pgrx_version: "0.12.0"
- pg_version: "17"
pgrx_version: "0.12.1"
- pg_version: "17"
pgrx_version: "0.12.2"
- pg_version: "17"
pgrx_version: "0.12.3"
- pg_version: "17"
pgrx_version: "0.12.4"
steps:
- name: Check out the repo
uses: actions/checkout@v4
Expand Down Expand Up @@ -189,7 +232,7 @@ jobs:

create_and_push_pgrx_manifests:
name: Build and push PGRX manifests
needs:
needs:
- build_and_push_pgrx_builders
runs-on:
- self-hosted
Expand Down Expand Up @@ -244,6 +287,48 @@ jobs:
pgrx_version: "0.9.7"
- pg_version: "16"
pgrx_version: "0.9.8"
- pg_version: "17"
pgrx_version: "0.7.4"
- pg_version: "17"
pgrx_version: "0.8.0"
- pg_version: "17"
pgrx_version: "0.8.3"
- pg_version: "17"
pgrx_version: "0.8.4"
- pg_version: "17"
pgrx_version: "0.9.0"
- pg_version: "17"
pgrx_version: "0.9.1"
- pg_version: "17"
pgrx_version: "0.9.7"
- pg_version: "17"
pgrx_version: "0.9.8"
- pg_version: "17"
pgrx_version: "0.10.0"
- pg_version: "17"
pgrx_version: "0.10.1"
- pg_version: "17"
pgrx_version: "0.10.2"
- pg_version: "17"
pgrx_version: "0.11.0"
- pg_version: "17"
pgrx_version: "0.11.1"
- pg_version: "17"
pgrx_version: "0.11.2"
- pg_version: "17"
pgrx_version: "0.11.3"
- pg_version: "17"
pgrx_version: "0.11.4"
- pg_version: "17"
pgrx_version: "0.12.0"
- pg_version: "17"
pgrx_version: "0.12.1"
- pg_version: "17"
pgrx_version: "0.12.2"
- pg_version: "17"
pgrx_version: "0.12.3"
- pg_version: "17"
pgrx_version: "0.12.4"
steps:
- name: Check out the repo
uses: actions/checkout@v4
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/extensions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ jobs:
- name: Build extension for Postgres 16
run: cd ${{ matrix.path }} && trunk build --pg-version 16
continue-on-error: true
- name: Build extension for Postgres 17
run: cd ${{ matrix.path }} && trunk build --pg-version 17
continue-on-error: true
- name: Handle shared_preload_libraries
shell: bash -e {0}
run: |
Expand Down
2 changes: 1 addition & 1 deletion cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pg-trunk"
version = "0.12.31"
version = "0.12.32"
jasonmp85 marked this conversation as resolved.
Show resolved Hide resolved
edition = "2021"
authors = ["Ian Stanton", "Vinícius Miguel"]
description = "A package manager for PostgreSQL extensions"
Expand Down
2 changes: 2 additions & 0 deletions cli/src/commands/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ impl PgConfig {
15
} else if version.starts_with("PostgreSQL 16") {
16
} else if version.starts_with("PostgreSQL 17") {
17
} else {
bail!("Currently unsupported Postgres version: {version}")
};
Expand Down
2 changes: 2 additions & 0 deletions cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ pub fn pg_version_to_str(pg_version: u8) -> &'static str {
14 => "14",
15 => "15",
16 => "16",
17 => "17",
_ => panic!("Unsupported Postgres version!"),
}
}
Expand All @@ -110,6 +111,7 @@ pub fn pg_release_for_version(pg_version: u8) -> &'static str {
14 => "REL_14_10",
15 => "REL_15_3",
16 => "REL_16_1",
17 => "REL_17_0",
_ => panic!("Unsupported Postgres version!"),
}
}
Loading