mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-poco.git
synced 2025-10-29 09:42:31 +00:00
* chore: 1.12.2 versions and notes * chore: spelling fix * fix(): Linking Crypto-testrunner fails #3688 * fix(Event): POSIX Event state need not be atomic #3699 * fix(OpenSSLInitializer): SIGABRT in OSSL_PROVIDER_unload with static OpenSSL3 #3698 * #3700: Release script must include build_vs170.cmd * fix(mingw): lowercase winsock2 and iphlpapi to allow cross compile #3711 * fix(PollSet): wakeup fd is never read #3708 * fix(PollSet): wakeup fd is never read (windows portion and some other optimizations) #3708 * fix(PollSet): wakeup fd is never read #3708 * fix(PollSet): Compiling with clang_cl_x64_x64 on Visual Studio 2022 failed #3716 * fix(SpinlockMutex): VS2022 compilation issues #3693 * Only support extracting JSON fields when the SDK supports it (#3717) * Added preprocessor defined to detect support for JSON * Only support extracting JSON fields when the SDK supports it * Fix version comparison * fix(MSVC): PocoNet Project File does not support Visual Studio 2022 #3719 * Update max MSVC version information (#3720) add visual studio 2022 support * Added missing Crypto Header to ProGen source (#3722) * fix(Crypto): fails to build with Visual Studio projects #3721 * Crypto: Progen again to add new files and bring back ARM64 configuration (#3724) * Progen Crypto to re-add ARM64 * Add new files * Add how to install using Conan section on README (#3727) Signed-off-by: Uilian Ries <uilianries@gmail.com> * fix(Platform): LoongArch support #3460 * fix(format): Poco::format and C++20 #3733 * fix: g++ C++20 warnings #3734 * core(CI): add c++20 * fix(CI): skip MySQL tests for c++20 * release 1.12.2 Co-authored-by: Günter Obiltschnig <guenter.obiltschnig@appinf.com> Co-authored-by: Hernan Martinez <hernan.c.martinez@gmail.com> Co-authored-by: Byungjun Lee <40881444+OneTop4458@users.noreply.github.com> Co-authored-by: Hernan Martinez <hmartinez@malwarebytes.com> Co-authored-by: Uilian Ries <uilianries@gmail.com>
186 lines
10 KiB
YAML
186 lines
10 KiB
YAML
name: poco-ci
|
|
on: [push, pull_request]
|
|
jobs:
|
|
linux-gcc-make:
|
|
runs-on: ubuntu-20.04
|
|
services:
|
|
mysql:
|
|
image: mysql:latest
|
|
env:
|
|
MYSQL_ALLOW_EMPTY_PASSWORD: yes
|
|
MYSQL_USER: pocotest
|
|
MYSQL_PASSWORD: pocotest
|
|
MYSQL_DATABASE: pocotest
|
|
ports:
|
|
- 3306:3306
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- run: sudo apt -y update && sudo apt -y install libssl-dev unixodbc-dev redis-server libmysqlclient-dev
|
|
- run: ./configure --everything --omit=PDF && make all -s -j4 && sudo make install
|
|
- run: >-
|
|
sudo -s
|
|
EXCLUDE_TESTS="Data/ODBC Data/PostgreSQL MongoDB"
|
|
./ci/runtests.sh
|
|
|
|
linux-gcc-make-cxx20:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- run: sudo apt -y update && sudo apt -y install libssl-dev unixodbc-dev redis-server libmysqlclient-dev
|
|
- run: ./configure --config=Linux-c++20 --everything --omit=PDF && make all -s -j4 && sudo make install
|
|
- run: >-
|
|
sudo -s
|
|
EXCLUDE_TESTS="Data/ODBC Data/MySQL Data/PostgreSQL MongoDB"
|
|
./ci/runtests.sh
|
|
|
|
linux-gcc-make-asan:
|
|
runs-on: ubuntu-20.04
|
|
services:
|
|
mysql:
|
|
image: mysql:latest
|
|
env:
|
|
MYSQL_ALLOW_EMPTY_PASSWORD: yes
|
|
MYSQL_USER: pocotest
|
|
MYSQL_PASSWORD: pocotest
|
|
MYSQL_DATABASE: pocotest
|
|
ports:
|
|
- 3306:3306
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- run: sudo apt -y update && sudo apt -y install libssl-dev unixodbc-dev libmysqlclient-dev redis-server
|
|
- run: ./configure --everything --no-samples --omit=PDF && make all -s -j4 SANITIZEFLAGS=-fsanitize=address && sudo make install
|
|
- run: >-
|
|
sudo -s
|
|
EXCLUDE_TESTS="Data/ODBC Data/PostgreSQL MongoDB"
|
|
./ci/runtests.sh
|
|
|
|
linux-gcc-make-asan-no-soo:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- run: sudo apt -y update && sudo apt -y install libssl-dev unixodbc-dev libmysqlclient-dev redis-server
|
|
- run: ./configure --everything --no-samples --omit=PDF --no-soo && make all -s -j4 SANITIZEFLAGS=-fsanitize=address && sudo make install
|
|
- run: >-
|
|
sudo -s
|
|
EXCLUDE_TESTS="Data/MySQL Data/ODBC Data/PostgreSQL MongoDB"
|
|
./ci/runtests.sh
|
|
|
|
linux-gcc-make-ubsan:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- run: sudo apt -y update && sudo apt -y install libssl-dev unixodbc-dev libmysqlclient-dev redis-server
|
|
- run: ./configure --everything --no-samples --omit=PDF && make all -s -j4 SANITIZEFLAGS=-fsanitize=undefined && sudo make install
|
|
- run: >-
|
|
sudo -s
|
|
EXCLUDE_TESTS="Data/MySQL Data/ODBC Data/PostgreSQL MongoDB"
|
|
./ci/runtests.sh
|
|
|
|
linux-gcc-make-tsan:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- run: sudo apt -y update && sudo apt -y install libssl-dev unixodbc-dev libmysqlclient-dev redis-server
|
|
- run: ./configure --everything --no-samples --omit=CppParser,Encodings,Data/MySQL,Data/ODBC,Data/PostgreSQL,MongoDB,PageCompiler,PDF,PocoDoc,ProGen,Redis,SevenZip && make all -s -j4 SANITIZEFLAGS=-fsanitize=thread && sudo make install
|
|
- run: >-
|
|
sudo -s
|
|
./ci/runtests.sh TSAN
|
|
|
|
linux-gcc-cmake:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- run: sudo apt -y update && sudo apt -y install cmake ninja-build libssl-dev unixodbc-dev libmysqlclient-dev redis-server
|
|
- run: cmake -H. -Bcmake-build -GNinja -DENABLE_PDF=OFF -DENABLE_TESTS=ON && cmake --build cmake-build --target all
|
|
- run: >-
|
|
cd cmake-build &&
|
|
sudo -s
|
|
PWD=`pwd`
|
|
ctest --output-on-failure -E "(DataMySQL)|(DataODBC)|(PostgreSQL)|(MongoDB)"
|
|
|
|
linux-gcc-make-cross-armhf:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- run: >-
|
|
sudo apt-get -y update &&
|
|
sudo apt-get -y install crossbuild-essential-armhf
|
|
- run: >-
|
|
./configure --config=ARM-Linux --everything --omit=PDF,Crypto,NetSSL_OpenSSL,JWT,Data/MySQL,Data/ODBC,Data/PostgreSQL,PageCompiler,PageCompiler/File2Page &&
|
|
make all -s -j4 ARCHFLAGS="-mcpu=cortex-a8 -mfloat-abi=hard -mfpu=neon" TOOL=arm-linux-gnueabihf
|
|
|
|
macos-clang-make:
|
|
runs-on: macos-10.15
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- run: brew install openssl@1.1 mysql-client unixodbc libpq
|
|
- run: ./configure --everything --no-prefix --omit=PDF --odbc-include=/usr/local/opt/unixodbc/include --odbc-lib=/usr/local/opt/unixodbc/lib && make all -s -j4
|
|
- run: >-
|
|
sudo -s
|
|
CPPUNIT_IGNORE="N7CppUnit10TestCallerI10ThreadTestEE.testTrySleep,N7CppUnit10TestCallerI13TimestampTestEE.testTimestamp,N7CppUnit10TestCallerI18ExpireLRUCacheTestEE.testExpireN,N7CppUnit10TestCallerI18ExpireLRUCacheTestEE.testAccessExpireN,N7CppUnit10TestCallerI24UniqueExpireLRUCacheTestEE.testExpireN,N7CppUnit10TestCallerI18ExpireLRUCacheTestEE.testAccessExpireN,N7CppUnit10TestCallerI11PollSetTestEE.testPollClosedServer"
|
|
EXCLUDE_TESTS="Redis Data/MySQL Data/ODBC Data/PostgreSQL MongoDB PDF"
|
|
./ci/runtests.sh
|
|
|
|
macos-clang-cmake:
|
|
runs-on: macos-10.15
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- run: brew install openssl@1.1 mysql-client unixodbc libpq
|
|
- run: cmake -H. -Bcmake-build -DENABLE_PDF=OFF -DENABLE_TESTS=ON -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl@1.1 -DMYSQL_ROOT_DIR=/usr/local/opt/mysql-client && cmake --build cmake-build --target all
|
|
- run: >-
|
|
cd cmake-build &&
|
|
sudo -s
|
|
CPPUNIT_IGNORE="N7CppUnit10TestCallerI10ThreadTestEE.testTrySleep,N7CppUnit10TestCallerI13TimestampTestEE.testTimestamp,N7CppUnit10TestCallerI18ExpireLRUCacheTestEE.testExpireN,N7CppUnit10TestCallerI18ExpireLRUCacheTestEE.testAccessExpireN,N7CppUnit10TestCallerI24UniqueExpireLRUCacheTestEE.testExpireN,N7CppUnit10TestCallerI18ExpireLRUCacheTestEE.testAccessExpireN,N7CppUnit10TestCallerI11PollSetTestEE.testPollClosedServer"
|
|
PWD=`pwd`
|
|
ctest --output-on-failure -E "(DataMySQL)|(DataODBC)|(PostgreSQL)|(MongoDB)|(Redis)"
|
|
|
|
macos-clang-cmake-openssl3:
|
|
runs-on: macos-10.15
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- run: brew install openssl@3 mysql-client unixodbc libpq
|
|
- run: cmake -H. -Bcmake-build -DENABLE_PDF=OFF -DENABLE_TESTS=ON -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl@3 -DMYSQL_ROOT_DIR=/usr/local/opt/mysql-client && cmake --build cmake-build --target all
|
|
- run: >-
|
|
cd cmake-build &&
|
|
sudo -s
|
|
CPPUNIT_IGNORE="N7CppUnit10TestCallerI10ThreadTestEE.testTrySleep,N7CppUnit10TestCallerI13TimestampTestEE.testTimestamp,N7CppUnit10TestCallerI18ExpireLRUCacheTestEE.testExpireN,N7CppUnit10TestCallerI18ExpireLRUCacheTestEE.testAccessExpireN,N7CppUnit10TestCallerI24UniqueExpireLRUCacheTestEE.testExpireN,N7CppUnit10TestCallerI18ExpireLRUCacheTestEE.testAccessExpireN,N7CppUnit10TestCallerI11PollSetTestEE.testPollClosedServer"
|
|
PWD=`pwd`
|
|
ctest --output-on-failure -E "(DataMySQL)|(DataODBC)|(PostgreSQL)|(MongoDB)|(Redis)"
|
|
|
|
windows-2019-msvc-cmake:
|
|
runs-on: windows-2019
|
|
env:
|
|
CPPUNIT_IGNORE: class CppUnit::TestCaller<class PathTest>.testFind,class CppUnit::TestCaller<class ICMPSocketTest>.testSendToReceiveFrom,class CppUnit::TestCaller<class ICMPClientTest>.testPing,class CppUnit::TestCaller<class ICMPClientTest>.testBigPing,class CppUnit::TestCaller<class ICMPSocketTest>.testMTU,class CppUnit::TestCaller<class HTTPSClientSessionTest>.testProxy,class CppUnit::TestCaller<class HTTPSStreamFactoryTest>.testProxy
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- run: cmake -S. -Bcmake-build -DENABLE_NETSSL_WIN=ON -DENABLE_NETSSL=OFF -DENABLE_CRYPTO=OFF -DENABLE_JWT=OFF -DENABLE_DATA=ON -DENABLE_DATA_ODBC=ON -DENABLE_DATA_MYSQL=OFF -DENABLE_DATA_POSTGRESQL=OFF -DENABLE_TESTS=ON
|
|
- run: cmake --build cmake-build --config Release
|
|
- run: >-
|
|
cd cmake-build;
|
|
ctest --output-on-failure -E "(DataMySQL)|(DataODBC)|(Redis)|(MongoDB)" -C Release
|
|
|
|
windows-2022-msvc-cmake-2022:
|
|
runs-on: windows-2022
|
|
env:
|
|
CPPUNIT_IGNORE: class CppUnit::TestCaller<class PathTest>.testFind,class CppUnit::TestCaller<class ICMPSocketTest>.testSendToReceiveFrom,class CppUnit::TestCaller<class ICMPClientTest>.testPing,class CppUnit::TestCaller<class ICMPClientTest>.testBigPing,class CppUnit::TestCaller<class ICMPSocketTest>.testMTU,class CppUnit::TestCaller<class HTTPSClientSessionTest>.testProxy,class CppUnit::TestCaller<class HTTPSStreamFactoryTest>.testProxy
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- run: cmake -S. -Bcmake-build -DENABLE_NETSSL_WIN=ON -DENABLE_NETSSL=OFF -DENABLE_CRYPTO=OFF -DENABLE_JWT=OFF -DENABLE_DATA=ON -DENABLE_DATA_ODBC=ON -DENABLE_DATA_MYSQL=OFF -DENABLE_DATA_POSTGRESQL=OFF -DENABLE_TESTS=ON
|
|
- run: cmake --build cmake-build --config Release
|
|
- run: >-
|
|
cd cmake-build;
|
|
ctest --output-on-failure -E "(DataMySQL)|(DataODBC)|(Redis)|(MongoDB)" -C Release
|
|
|
|
# missing asan dll path
|
|
# windows-2022-msvc-cmake-2022-asan:
|
|
# runs-on: windows-2022
|
|
# env:
|
|
# CPPUNIT_IGNORE: class CppUnit::TestCaller<class PathTest>.testFind,class CppUnit::TestCaller<class ICMPSocketTest>.testSendToReceiveFrom,class CppUnit::TestCaller<class ICMPClientTest>.testPing,class CppUnit::TestCaller<class ICMPClientTest>.testBigPing,class CppUnit::TestCaller<class ICMPSocketTest>.testMTU,class CppUnit::TestCaller<class HTTPSClientSessionTest>.testProxy,class CppUnit::TestCaller<class HTTPSStreamFactoryTest>.testProxy
|
|
# steps:
|
|
# - uses: actions/checkout@v2
|
|
# - run: cmake -S. -Bcmake-build -DPOCO_SANITIZE_ASAN=ON -DENABLE_NETSSL_WIN=ON -DENABLE_NETSSL=OFF -DENABLE_CRYPTO=OFF -DENABLE_JWT=OFF -DENABLE_DATA=ON -DENABLE_DATA_ODBC=ON -DENABLE_DATA_MYSQL=OFF -DENABLE_DATA_POSTGRESQL=OFF -DENABLE_TESTS=ON
|
|
# - run: cmake --build cmake-build --config Debug
|
|
# - run: >-
|
|
# cd cmake-build;
|
|
# ctest --output-on-failure -E "(DataMySQL)|(DataODBC)|(Redis)|(MongoDB)" -C Debug
|