Skip to content

Commit

Permalink
Enable static builds in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dominiklohmann committed Nov 14, 2019
1 parent fcf80d3 commit ef1419c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
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

0 comments on commit ef1419c

Please sign in to comment.