supabase-postgres.git / summary / log / commit / refs

commit    fdaee4b59f351ca6e50fa4cdfb0bb655dae7b3db
Author:   Pavel Borisov <pashkin.elfe@gmail.com>
Commit:   Div Arora <darora@users.noreply.github.com>
Date:     Fri Jun 28 11:52:28 2024 +0000

    Build PG debug symbols at PG build


.github/workflows/ami-release.yml | 1 + .github/workflows/testinfra.yml | 1 + docker/Dockerfile | 1 + testinfra/README.md | 1 + 4 files changed, 4 insertions(+) diff --git a/.github/workflows/ami-release.yml b/.github/workflows/ami-release.yml index 85430fbc..e7cc4c48 100644 --- a/.github/workflows/ami-release.yml +++ b/.github/workflows/ami-release.yml @@ -76,6 +76,7 @@ jobs: postgresql_major=${{ steps.version.outputs.postgresql_major }} postgresql_release=${{ steps.version.outputs.postgresql_release }} CPPFLAGS=-mcpu=${{ matrix.mcpu }} + CFLAGS=-g3 tags: supabase/postgres:deb platforms: linux/${{ matrix.arch }} outputs: type=tar,dest=/tmp/pg-deb.tar diff --git a/.github/workflows/testinfra.yml b/.github/workflows/testinfra.yml index 9b60d852..1b022eff 100644 --- a/.github/workflows/testinfra.yml +++ b/.github/workflows/testinfra.yml @@ -103,6 +103,7 @@ jobs: postgresql_major=${{ steps.version.outputs.postgresql_major }} postgresql_release=${{ steps.version.outputs.postgresql_release }} CPPFLAGS=-mcpu=${{ matrix.mcpu }} + CFLAGS=-g3 tags: supabase/postgres:deb platforms: linux/${{ matrix.arch }} outputs: type=tar,dest=/tmp/pg-deb.tar diff --git a/docker/Dockerfile b/docker/Dockerfile index 8d84ab1e..f9f0ebd0 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -37,6 +37,7 @@ ENV DEB_BUILD_OPTIONS="nocheck parallel=$(nproc)" # Configure processor optimised build ARG CPPFLAGS="" ENV DEB_CPPFLAGS_APPEND="${CPPFLAGS} -fsigned-char" +ENV DEB_CFLAGS_APPEND="-g3" ARG DEB_BUILD_PROFILES="pkg.postgresql.nozstd" ENV DEB_BUILD_PROFILES="${DEB_BUILD_PROFILES}" diff --git a/testinfra/README.md b/testinfra/README.md index 7c2dd86e..977043c3 100644 --- a/testinfra/README.md +++ b/testinfra/README.md @@ -37,6 +37,7 @@ docker buildx build \ --build-arg postgresql_major=15 \ --build-arg postgresql_release=15.1 \ --build-arg CPPFLAGS=-mcpu=neoverse-n1 \ + --build-arg CFLAGS=-g3 --file=docker/Dockerfile \ --target=pg-deb \ --tag=supabase/postgres:deb \ [parent: ec6f704dbcd8]