File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed
Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ cmake \
3737 -DCMAKE_INSTALL_PREFIX=./out \
3838 ../../.. > /dev/null
3939
40+ git stash
4041git checkout -q " ${PREVIOUS_VERSION} "
4142cmake --build . --target install > /dev/null
4243cmake --build . --target clean > /dev/null
@@ -49,10 +50,16 @@ if [ "$CURRENT_COMMIT" = "$(git rev-parse master)" ]; then
4950else
5051 git checkout -q " ${CURRENT_COMMIT} "
5152fi
53+ git stash pop
5254
5355# ABI compatibility check
54- ../check-abi-compatibility.sh ./old/out/lib/libcpp-httplib.so ./new/out/lib/libcpp-httplib.so
55-
56- # Clean the build directory
57- cd ..
58- rm -rf $BUILD_DIR
56+ if [[ " $OSTYPE " == " linux-gnu" * ]]; then
57+ ../check-abi-compatibility.sh ./old/out/lib/libcpp-httplib.so ./new/out/lib/libcpp-httplib.so
58+ exit $?
59+ elif [[ " $OSTYPE " == " darwin" * ]]; then
60+ ../check-abi-compatibility.sh ./old/out/lib/libcpp-httplib.dylib ./new/out/lib/libcpp-httplib.dylib
61+ exit $?
62+ else
63+ echo " Unknown OS..."
64+ exit 1
65+ fi
You can’t perform that action at this time.
0 commit comments