ci: add test case for building with hidden symbol visibility

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

@ -18,6 +18,7 @@ task:
BUILD_VALGRIND: "yes" BUILD_VALGRIND: "yes"
BUILD_COVERAGE: "yes" BUILD_COVERAGE: "yes"
BUILD_ANALYZE: "yes" BUILD_ANALYZE: "yes"
TEST_SYMBOL_VISIBILITY: "yes"
container: container:
image: debian:11 image: debian:11
- name: "Debian arm64" - name: "Debian arm64"
@ -37,6 +38,7 @@ task:
SCAN_BUILD: "scan-build" SCAN_BUILD: "scan-build"
MAKE: "gmake" MAKE: "gmake"
BUILD_ANALYZE: "yes" BUILD_ANALYZE: "yes"
TEST_SYMBOL_VISIBILITY: "yes"
freebsd_instance: freebsd_instance:
image_family: freebsd-13-1 image_family: freebsd-13-1
- name: "MacOS" - name: "MacOS"
@ -46,6 +48,7 @@ task:
MAKE: "make" MAKE: "make"
BUILD_ASAN: "yes" BUILD_ASAN: "yes"
BUILD_ANALYZE: "yes" BUILD_ANALYZE: "yes"
TEST_SYMBOL_VISIBILITY: "yes"
macos_instance: macos_instance:
image: ghcr.io/cirruslabs/macos-ventura-xcode:latest image: ghcr.io/cirruslabs/macos-ventura-xcode:latest
- name: "iOS" - name: "iOS"
@ -61,6 +64,11 @@ task:
- name: "CMAKE" - name: "CMAKE"
env: env:
BUILD_TYPE: "cmake" 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" - name: "AUTOTOOLS"
env: env:
BUILD_TYPE: "autotools" BUILD_TYPE: "autotools"

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

Loading…
Cancel
Save