name: poco-ci on: [push] jobs: linux-gcc-make: runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 - run: sudo apt update && sudo apt install libssl-dev ca-certificates unixodbc-dev libmysqlclient-dev redis-server - run: ./configure --everything --omit=PDF && make all -s -j4 && sudo make install - run: sudo -s ./travis/runtests.sh linux-gcc-make-asan: runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 - run: sudo apt update && sudo apt install libssl-dev ca-certificates unixodbc-dev libmysqlclient-dev redis-server - run: ./configure --everything --omit=PDF && make all -s -j4 SANITIZEFLAGS=-fsanitize=address && sudo make install - run: sudo -s ./travis/runtests.sh linux-gcc-make-ubsan: runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 - run: sudo apt update && sudo apt install libssl-dev ca-certificates unixodbc-dev libmysqlclient-dev redis-server - run: ./configure --everything --omit=PDF && make all -s -j4 SANITIZEFLAGS=-fsanitize=undefined && sudo make install - run: sudo -s ./travis/runtests.sh linux-gcc-cmake: runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 - run: sudo apt update && sudo apt install cmake ninja-build libssl-dev ca-certificates unixodbc-dev libmysqlclient-dev redis-server - run: cmake -H. -Bcmake-build -GNinja -DENABLE_PDF=OFF -DENABLE_TESTS=ON && cmake --build cmake-build --target all && cd cmake-build && sudo -s PWD=`pwd` ctest --output-on-failure -E "(DataMySQL)|(DataODBC)|(PostgreSQL)|(MongoDB)" macos-clang-make: runs-on: macos-10.15 env: CPPUNIT_IGNORE: N7CppUnit10TestCallerI24UniqueExpireLRUCacheTestEE.testExpireN,N7CppUnit10TestCallerI11PollSetTestEE.testPollClosedServer EXCLUDE_TESTS: Redis steps: - uses: actions/checkout@v2 - run: brew install openssl - run: ./configure --everything --no-prefix --omit=PDF,Data/MySQL,Data/ODBC,Data/PostgreSQL && make all -s -j4 - run: sudo -s ./travis/runtests.sh macos-clang-cmake: runs-on: macos-10.15 env: CPPUNIT_IGNORE: N7CppUnit10TestCallerI24UniqueExpireLRUCacheTestEE.testExpireN,N7CppUnit10TestCallerI11PollSetTestEE.testPollClosedServer steps: - uses: actions/checkout@v2 - run: brew install openssl - run: cmake -H. -Bcmake-build -DENABLE_PDF=OFF -DENABLE_TESTS=ON -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl && cmake --build cmake-build --target all && cd cmake-build && sudo -s PWD=`pwd` ctest --output-on-failure -E "(DataMySQL)|(DataODBC)|(PostgreSQL)|(MongoDB)|(Redis)" windows-msvc-cmake: runs-on: windows-2019 env: CPPUNIT_IGNORE: class CppUnit::TestCaller.testFind,class CppUnit::TestCaller.testSendToReceiveFrom,class CppUnit::TestCaller.testPing,class CppUnit::TestCaller.testBigPing,class CppUnit::TestCaller.testMTU,class CppUnit::TestCaller.testProxy,class CppUnit::TestCaller.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_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