From 7a376f59c85c59494ad2ac609801e495a207c737 Mon Sep 17 00:00:00 2001 From: Ivan Folgueira Bande <128452529+Ivansete-status@users.noreply.github.com> Date: Tue, 26 Sep 2023 10:11:38 +0200 Subject: [PATCH] chore: Adding -d:postgres flag when creating a Docker image for release and PRs (#2076) --- .github/workflows/container-image.yml | 2 +- .github/workflows/pre-release.yml | 3 ++- .github/workflows/release-assets.yml | 2 +- ci/Jenkinsfile.prs | 1 + ci/Jenkinsfile.release | 1 + 5 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/container-image.yml b/.github/workflows/container-image.yml index f609e43711..d8de9e2542 100644 --- a/.github/workflows/container-image.yml +++ b/.github/workflows/container-image.yml @@ -48,7 +48,7 @@ jobs: id: build run: | - make -j${NPROC} V=1 QUICK_AND_DIRTY_COMPILER=1 NIMFLAGS="-d:disableMarchNative" wakunode2 + make -j${NPROC} V=1 QUICK_AND_DIRTY_COMPILER=1 NIMFLAGS="-d:disableMarchNative -d:postgres" wakunode2 SHORT_REF=$(git rev-parse --short HEAD) diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index 81706c9db2..02293aa00c 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -66,7 +66,8 @@ jobs: make QUICK_AND_DIRTY_COMPILER=1 V=1 CI=false NIMFLAGS="-d:disableMarchNative --os:${OS} --cpu:${{matrix.arch}}" \ update - make QUICK_AND_DIRTY_COMPILER=1 V=1 CI=false NIMFLAGS="-d:disableMarchNative --os:${OS} --cpu:${{matrix.arch}}" \ + make QUICK_AND_DIRTY_COMPILER=1 V=1 CI=false\ + NIMFLAGS="-d:disableMarchNative --os:${OS} --cpu:${{matrix.arch}} -d:postgres" \ wakunode2\ chat2\ tools diff --git a/.github/workflows/release-assets.yml b/.github/workflows/release-assets.yml index 0b75519e47..eafd04e217 100644 --- a/.github/workflows/release-assets.yml +++ b/.github/workflows/release-assets.yml @@ -53,7 +53,7 @@ jobs: OS=$([[ "${{runner.os}}" == "macOS" ]] && echo "macosx" || echo "linux") make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC} -d:disableMarchNative --os:${OS} --cpu:${{matrix.arch}}" V=1 update - make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC} -d:disableMarchNative --os:${OS} --cpu:${{matrix.arch}}" CI=false wakunode2 + make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC} -d:disableMarchNative --os:${OS} --cpu:${{matrix.arch}} -d:postgres" CI=false wakunode2 make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC} -d:disableMarchNative --os:${OS} --cpu:${{matrix.arch}}" CI=false chat2 tar -cvzf ${{steps.vars.outputs.nwaku}} ./build/ diff --git a/ci/Jenkinsfile.prs b/ci/Jenkinsfile.prs index 1a0583f90a..fccb94d24c 100644 --- a/ci/Jenkinsfile.prs +++ b/ci/Jenkinsfile.prs @@ -12,6 +12,7 @@ pipeline { '-d:insecure', '-d:disableMarchNative', '--parallelBuild:6', + '-d:postgres', ].join(' ') ) string( diff --git a/ci/Jenkinsfile.release b/ci/Jenkinsfile.release index 819de1a166..59cceb50f6 100644 --- a/ci/Jenkinsfile.release +++ b/ci/Jenkinsfile.release @@ -34,6 +34,7 @@ pipeline { '-d:disableMarchNative', '-d:chronicles_colors:none', '-d:insecure', + '-d:postgres', ].join(' ') ) string(