Skip to content

Commit b36cd22

Browse files
committed
Enable assertions on CI
1 parent b447ae4 commit b36cd22

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
dev-files: true
2929
- run: make
3030
env:
31-
PG_CFLAGS: -Wall -Wextra -Werror -Wno-unused-parameter -Wno-sign-compare
31+
PG_CFLAGS: -DUSE_ASSERT_CHECKING -Wall -Wextra -Werror -Wno-unused-parameter -Wno-sign-compare
3232
- run: |
3333
export PG_CONFIG=`which pg_config`
3434
sudo --preserve-env=PG_CONFIG make install
@@ -49,7 +49,7 @@ jobs:
4949
postgres-version: 14
5050
- run: make
5151
env:
52-
PG_CFLAGS: -Wall -Wextra -Werror -Wno-unused-parameter
52+
PG_CFLAGS: -DUSE_ASSERT_CHECKING -Wall -Wextra -Werror -Wno-unused-parameter
5353
- run: make install
5454
- run: make installcheck
5555
- if: ${{ failure() }}
@@ -97,7 +97,7 @@ jobs:
9797
sudo -u postgres make installcheck
9898
sudo -u postgres make prove_installcheck
9999
env:
100-
PG_CFLAGS: -Wall -Wextra -Werror -Wno-unused-parameter -Wno-sign-compare
100+
PG_CFLAGS: -DUSE_ASSERT_CHECKING -Wall -Wextra -Werror -Wno-unused-parameter -Wno-sign-compare
101101
valgrind:
102102
if: ${{ !startsWith(github.ref_name, 'mac') && !startsWith(github.ref_name, 'windows') }}
103103
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)