diff --git a/.github/workflows/builder-images.yml b/.github/workflows/builder-images.yml index e5971462..c009e651 100644 --- a/.github/workflows/builder-images.yml +++ b/.github/workflows/builder-images.yml @@ -32,9 +32,15 @@ jobs: - "14" - "15" - "16" + - "17" steps: - name: Check out the repo uses: actions/checkout@v4 + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: Login to Quay.io @@ -68,6 +74,11 @@ jobs: steps: - name: Check out the repo uses: actions/checkout@v4 + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: Login to Quay.io @@ -120,17 +131,6 @@ jobs: - "15" - "16" pgrx_version: - - "0.7.4" - - "0.8.0" - - "0.8.3" - - "0.8.4" - - "0.9.0" - - "0.9.1" - - "0.9.7" - - "0.9.8" - - "0.10.0" - - "0.10.1" - - "0.10.2" - "0.11.0" - "0.11.1" - "0.11.2" @@ -145,25 +145,34 @@ jobs: - "0.12.6" - "0.12.7" exclude: - - pg_version: "16" - pgrx_version: "0.7.4" - - pg_version: "16" - pgrx_version: "0.8.0" - - pg_version: "16" - pgrx_version: "0.8.3" - - pg_version: "16" - pgrx_version: "0.8.4" - - pg_version: "16" - pgrx_version: "0.9.0" - - pg_version: "16" - pgrx_version: "0.9.1" - - pg_version: "16" - pgrx_version: "0.9.7" - - pg_version: "16" - pgrx_version: "0.9.8" + - 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 + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: Login to Quay.io @@ -189,7 +198,7 @@ jobs: create_and_push_pgrx_manifests: name: Build and push PGRX manifests - needs: + needs: - build_and_push_pgrx_builders runs-on: - self-hosted @@ -203,17 +212,6 @@ jobs: - "15" - "16" pgrx_version: - - "0.7.4" - - "0.8.0" - - "0.8.3" - - "0.8.4" - - "0.9.0" - - "0.9.1" - - "0.9.7" - - "0.9.8" - - "0.10.0" - - "0.10.1" - - "0.10.2" - "0.11.0" - "0.11.1" - "0.11.2" @@ -228,25 +226,34 @@ jobs: - "0.12.6" - "0.12.7" exclude: - - pg_version: "16" - pgrx_version: "0.7.4" - - pg_version: "16" - pgrx_version: "0.8.0" - - pg_version: "16" - pgrx_version: "0.8.3" - - pg_version: "16" - pgrx_version: "0.8.4" - - pg_version: "16" - pgrx_version: "0.9.0" - - pg_version: "16" - pgrx_version: "0.9.1" - - pg_version: "16" - pgrx_version: "0.9.7" - - pg_version: "16" - pgrx_version: "0.9.8" + - 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 + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: Login to Quay.io diff --git a/.github/workflows/extensions.yaml b/.github/workflows/extensions.yaml index 5d140686..3500f1e0 100644 --- a/.github/workflows/extensions.yaml +++ b/.github/workflows/extensions.yaml @@ -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: | diff --git a/cli/Cargo.toml b/cli/Cargo.toml index cd5659eb..e2cef2c0 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pg-trunk" -version = "0.12.31" +version = "0.13.0" edition = "2021" authors = ["Ian Stanton", "Vinícius Miguel"] description = "A package manager for PostgreSQL extensions" diff --git a/cli/src/commands/install.rs b/cli/src/commands/install.rs index 0f9e2c39..2e067339 100644 --- a/cli/src/commands/install.rs +++ b/cli/src/commands/install.rs @@ -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}") }; diff --git a/cli/src/main.rs b/cli/src/main.rs index 57c66fe2..b090d671 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -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!"), } } @@ -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!"), } }