Skip to content

Commit 86d4dc5

Browse files
Add ENABLE_ASSERTIONS build arg for pg.
1 parent 1a93034 commit 86d4dc5

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/antithesis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ jobs:
4545
file: ./postgres.Dockerfile
4646
platforms: linux/amd64
4747
push: true
48+
build-args: |
49+
ENABLE_ASSERTIONS=1
4850
tags: |
4951
${{ env.REGISTRY }}/postgres:latest
5052
${{ env.REGISTRY }}/postgres:${{ github.sha }}

postgres.Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM debian:bookworm-slim AS builder
22

33
ARG PG_VERSION=18.3
4+
ARG ENABLE_ASSERTIONS=
45

56
RUN apt-get update && apt-get install -y --no-install-recommends \
67
build-essential \
@@ -52,7 +53,8 @@ RUN CC=/usr/local/bin/clang-antithesis \
5253
./configure \
5354
--prefix=/usr/local/pgsql \
5455
--with-openssl \
55-
--with-icu
56+
--with-icu \
57+
${ENABLE_ASSERTIONS:+--enable-cassert}
5658

5759
RUN make -j"$(nproc)" && make install
5860

0 commit comments

Comments
 (0)