Skip to content

Commit 14c0869

Browse files
committed
Add tests for static libraries
1 parent bcfec3f commit 14c0869

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/ci-pr-validation.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,16 @@ jobs:
4848
export ARCH=${{ matrix.arch }}
4949
./pkg/mac/build-static-library.sh
5050
51+
- name: Test static libraries
52+
run: |
53+
export PULSAR_DIR=$PWD/pkg/mac/.install
54+
echo "Build with static library"
55+
clang++ win-examples/example.cc -o static.out -std=c++11 -I $PULSAR_DIR/include $PULSAR_DIR/lib/libpulsarwithdeps.a -framework SystemConfiguration -framework CoreFoundation
56+
./static.out
57+
echo "Build with dynamic library"
58+
clang++ win-examples/example.cc -o dynamic.out -std=c++11 -I $PULSAR_DIR/include -L $PULSAR_DIR/lib -Wl,-rpath $PULSAR_DIR/lib -lpulsar
59+
./dynamic.out
60+
5161
- name: Zip artifact
5262
run: |
5363
cd ./pkg/mac/.install

0 commit comments

Comments
 (0)