Skip to content

Commit fdaee4b

Browse files
pashkinelfedarora
authored andcommitted
Build PG debug symbols at PG build
1 parent ec6f704 commit fdaee4b

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

.github/workflows/ami-release.yml

+1
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ jobs:
7676
postgresql_major=${{ steps.version.outputs.postgresql_major }}
7777
postgresql_release=${{ steps.version.outputs.postgresql_release }}
7878
CPPFLAGS=-mcpu=${{ matrix.mcpu }}
79+
CFLAGS=-g3
7980
tags: supabase/postgres:deb
8081
platforms: linux/${{ matrix.arch }}
8182
outputs: type=tar,dest=/tmp/pg-deb.tar

.github/workflows/testinfra.yml

+1
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ jobs:
103103
postgresql_major=${{ steps.version.outputs.postgresql_major }}
104104
postgresql_release=${{ steps.version.outputs.postgresql_release }}
105105
CPPFLAGS=-mcpu=${{ matrix.mcpu }}
106+
CFLAGS=-g3
106107
tags: supabase/postgres:deb
107108
platforms: linux/${{ matrix.arch }}
108109
outputs: type=tar,dest=/tmp/pg-deb.tar

docker/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ ENV DEB_BUILD_OPTIONS="nocheck parallel=$(nproc)"
3737
# Configure processor optimised build
3838
ARG CPPFLAGS=""
3939
ENV DEB_CPPFLAGS_APPEND="${CPPFLAGS} -fsigned-char"
40+
ENV DEB_CFLAGS_APPEND="-g3"
4041
ARG DEB_BUILD_PROFILES="pkg.postgresql.nozstd"
4142
ENV DEB_BUILD_PROFILES="${DEB_BUILD_PROFILES}"
4243

testinfra/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ docker buildx build \
3737
--build-arg postgresql_major=15 \
3838
--build-arg postgresql_release=15.1 \
3939
--build-arg CPPFLAGS=-mcpu=neoverse-n1 \
40+
--build-arg CFLAGS=-g3
4041
--file=docker/Dockerfile \
4142
--target=pg-deb \
4243
--tag=supabase/postgres:deb \

0 commit comments

Comments
 (0)