ci: add test case for building with hidden symbol visibility

v1.23
Brad House 11 months ago
parent fea189d8d0
commit c22e35e92e
  1. 8
      .cirrus.yml
  2. 2
      ci/build.sh

@ -18,6 +18,7 @@ task:
BUILD_VALGRIND: "yes"
BUILD_COVERAGE: "yes"
BUILD_ANALYZE: "yes"
TEST_SYMBOL_VISIBILITY: "yes"
container:
image: debian:11
- name: "Debian arm64"
@ -37,6 +38,7 @@ task:
SCAN_BUILD: "scan-build"
MAKE: "gmake"
BUILD_ANALYZE: "yes"
TEST_SYMBOL_VISIBILITY: "yes"
freebsd_instance:
image_family: freebsd-13-1
- name: "MacOS"
@ -46,6 +48,7 @@ task:
MAKE: "make"
BUILD_ASAN: "yes"
BUILD_ANALYZE: "yes"
TEST_SYMBOL_VISIBILITY: "yes"
macos_instance:
image: ghcr.io/cirruslabs/macos-ventura-xcode:latest
- name: "iOS"
@ -61,6 +64,11 @@ task:
- name: "CMAKE"
env:
BUILD_TYPE: "cmake"
- name: "CMAKE HIDE SYMBOLS"
only_if: $TEST_SYMBOL_VISIBILITY == 'yes'
env:
BUILD_TYPE: "cmake"
CMAKE_EXTRA_FLAGS: "-DCARES_SYMBOL_HIDING=ON"
- name: "AUTOTOOLS"
env:
BUILD_TYPE: "autotools"

@ -33,6 +33,6 @@ else
if [ "$DIST" = "iOS" ] ; then
CMAKE_FLAGS="${CMAKE_FLAGS} -DCMAKE_OSX_SYSROOT=${SYSROOT}"
fi
cmake ${CMAKE_FLAGS} ..
cmake ${CMAKE_FLAGS} ${CMAKE_EXTRA_FLAGS} ..
make
fi

Loading…
Cancel
Save