Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable static builds in CI #646

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 2 additions & 3 deletions .ci/scripts/build-target
Expand Up @@ -2,8 +2,7 @@

# e - non-interactive terminals will exit on failures immediately
# x - print commands before exiting
# u - error on unset variables
set -exu
set -ex

PACKAGE_NAME="${PACKAGE_NAME:-$(cat PACKAGE_NAME)}"

Expand All @@ -12,7 +11,7 @@ cmake -Bbuild -H. -DCMAKE_INSTALL_PREFIX="$PREFIX" \
-DCMAKE_BUILD_TYPE="$BUILD_TYPE" \
-DCPACK_GENERATOR=TGZ \
-DCPACK_PACKAGE_FILE_NAME="$PACKAGE_NAME" \
-DCPACK_SET_DESTDIR=ON "${CONFIGURE_FLAGS:-}" -G Ninja
-DCPACK_SET_DESTDIR=ON $CONFIGURE_FLAGS -G Ninja

# execute specific cmake target
cmake --build build --target "$TARGET"
4 changes: 4 additions & 0 deletions .cirrus.yml
Expand Up @@ -52,8 +52,12 @@ debian_task:
CXX: g++-8
matrix:
- BUILD_TYPE: Release
- BUILD_TYPE: Release
CONFIGURE_FLAGS: -DBUILD_SHARED_LIBS:BOOL=OFF
- BUILD_TYPE: Debug
CONFIGURE_FLAGS: -DENABLE_ADDRESS_SANITIZER:BOOL=ON
- BUILD_TYPE: Debug
CONFIGURE_FLAGS: -DENABLE_ADDRESS_SANITIZER:BOOL=ON -DBUILD_SHARED_LIBS:BOOL=OFF
<<: *build_definition

freebsd_task:
Expand Down