mirror of
https://github.com/pocoproject/poco.git
synced 2025-05-03 07:52:29 +02:00
add Linux cross build, build Data libs on macos
This commit is contained in:
parent
13e62ef2e2
commit
dd0ce693ff
28
.github/workflows/ci.yml
vendored
28
.github/workflows/ci.yml
vendored
@ -5,7 +5,7 @@ jobs:
|
|||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- run: sudo apt update && sudo apt install libssl-dev ca-certificates unixodbc-dev libmysqlclient-dev redis-server
|
- run: sudo apt update && sudo apt install libssl-dev unixodbc-dev libmysqlclient-dev redis-server
|
||||||
- run: ./configure --everything --omit=PDF && make all -s -j4 && sudo make install
|
- run: ./configure --everything --omit=PDF && make all -s -j4 && sudo make install
|
||||||
- run: >-
|
- run: >-
|
||||||
sudo -s
|
sudo -s
|
||||||
@ -16,7 +16,7 @@ jobs:
|
|||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- run: sudo apt update && sudo apt install libssl-dev ca-certificates unixodbc-dev libmysqlclient-dev redis-server
|
- run: sudo apt update && sudo apt install libssl-dev unixodbc-dev libmysqlclient-dev redis-server
|
||||||
- run: ./configure --everything --omit=PDF && make all -s -j4 SANITIZEFLAGS=-fsanitize=address && sudo make install
|
- run: ./configure --everything --omit=PDF && make all -s -j4 SANITIZEFLAGS=-fsanitize=address && sudo make install
|
||||||
- run: >-
|
- run: >-
|
||||||
sudo -s
|
sudo -s
|
||||||
@ -27,7 +27,7 @@ jobs:
|
|||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- run: sudo apt update && sudo apt install libssl-dev ca-certificates unixodbc-dev libmysqlclient-dev redis-server
|
- run: sudo apt update && sudo apt install libssl-dev unixodbc-dev libmysqlclient-dev redis-server
|
||||||
- run: ./configure --everything --omit=PDF && make all -s -j4 SANITIZEFLAGS=-fsanitize=undefined && sudo make install
|
- run: ./configure --everything --omit=PDF && make all -s -j4 SANITIZEFLAGS=-fsanitize=undefined && sudo make install
|
||||||
- run: >-
|
- run: >-
|
||||||
sudo -s
|
sudo -s
|
||||||
@ -38,7 +38,7 @@ jobs:
|
|||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- 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: sudo apt update && sudo apt 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: cmake -H. -Bcmake-build -GNinja -DENABLE_PDF=OFF -DENABLE_TESTS=ON && cmake --build cmake-build --target all
|
||||||
- run: >-
|
- run: >-
|
||||||
cd cmake-build &&
|
cd cmake-build &&
|
||||||
@ -46,12 +46,26 @@ jobs:
|
|||||||
PWD=`pwd`
|
PWD=`pwd`
|
||||||
ctest --output-on-failure -E "(DataMySQL)|(DataODBC)|(PostgreSQL)|(MongoDB)"
|
ctest --output-on-failure -E "(DataMySQL)|(DataODBC)|(PostgreSQL)|(MongoDB)"
|
||||||
|
|
||||||
|
linux-gcc-make-cross-arm:
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- run: sudo apt update && sudo apt install libssl-dev
|
||||||
|
- run: >-
|
||||||
|
sudo dpkg --add-architecture armhf &&
|
||||||
|
sudo apt-get update &&
|
||||||
|
sudo apt-get install crossbuild-essential-armhf &&
|
||||||
|
sudo apt-get install libssl-dev:armhf
|
||||||
|
- run: >-
|
||||||
|
./configure --config=ARM-Linux --everything --omit=PDF,Data/MySQL,Data/ODBC,Data/PostgreSQL &&
|
||||||
|
make all -s -j4 ARCHFLAGS="-mcpu=cortex-a8 -mfloat-abi=hard -mfpu=neon" TOOL=arm-linux-gnueabihf
|
||||||
|
|
||||||
macos-clang-make:
|
macos-clang-make:
|
||||||
runs-on: macos-10.15
|
runs-on: macos-10.15
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- run: brew install openssl
|
- run: brew install openssl mysql-client unixodbc libpq
|
||||||
- run: ./configure --everything --no-prefix --omit=PDF,Data/MySQL,Data/ODBC,Data/PostgreSQL && make all -s -j4
|
- run: ./configure --everything --no-prefix --omit=PDF && make all -s -j4
|
||||||
- run: >-
|
- run: >-
|
||||||
sudo -s
|
sudo -s
|
||||||
CPPUNIT_IGNORE="N7CppUnit10TestCallerI10ThreadTestEE.testTrySleep,N7CppUnit10TestCallerI13TimestampTestEE.testTimestamp,N7CppUnit10TestCallerI18ExpireLRUCacheTestEE.testExpireN,N7CppUnit10TestCallerI18ExpireLRUCacheTestEE.testAccessExpireN,N7CppUnit10TestCallerI24UniqueExpireLRUCacheTestEE.testExpireN,N7CppUnit10TestCallerI18ExpireLRUCacheTestEE.testAccessExpireN,N7CppUnit10TestCallerI11PollSetTestEE.testPollClosedServer"
|
CPPUNIT_IGNORE="N7CppUnit10TestCallerI10ThreadTestEE.testTrySleep,N7CppUnit10TestCallerI13TimestampTestEE.testTimestamp,N7CppUnit10TestCallerI18ExpireLRUCacheTestEE.testExpireN,N7CppUnit10TestCallerI18ExpireLRUCacheTestEE.testAccessExpireN,N7CppUnit10TestCallerI24UniqueExpireLRUCacheTestEE.testExpireN,N7CppUnit10TestCallerI18ExpireLRUCacheTestEE.testAccessExpireN,N7CppUnit10TestCallerI11PollSetTestEE.testPollClosedServer"
|
||||||
@ -62,7 +76,7 @@ jobs:
|
|||||||
runs-on: macos-10.15
|
runs-on: macos-10.15
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- run: brew install openssl
|
- run: brew install openssl mysql-client unixodbc libpq
|
||||||
- run: cmake -H. -Bcmake-build -DENABLE_PDF=OFF -DENABLE_TESTS=ON -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl && cmake --build cmake-build --target all
|
- run: cmake -H. -Bcmake-build -DENABLE_PDF=OFF -DENABLE_TESTS=ON -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl && cmake --build cmake-build --target all
|
||||||
- run: >-
|
- run: >-
|
||||||
cd cmake-build &&
|
cd cmake-build &&
|
||||||
|
@ -12,6 +12,7 @@ LINKMODE ?= SHARED
|
|||||||
TOOL ?= arm-linux
|
TOOL ?= arm-linux
|
||||||
POCO_TARGET_OSNAME = Linux
|
POCO_TARGET_OSNAME = Linux
|
||||||
POCO_TARGET_OSARCH ?= armv7l
|
POCO_TARGET_OSARCH ?= armv7l
|
||||||
|
ARCHFLAGS ?=
|
||||||
|
|
||||||
#
|
#
|
||||||
# Define Tools
|
# Define Tools
|
||||||
@ -39,10 +40,10 @@ SHAREDLIBLINKEXT = .so
|
|||||||
#
|
#
|
||||||
# Compiler and Linker Flags
|
# Compiler and Linker Flags
|
||||||
#
|
#
|
||||||
CFLAGS = -std=c99
|
CFLAGS = -std=c11 $(ARCHFLAGS)
|
||||||
CFLAGS32 =
|
CFLAGS32 =
|
||||||
CFLAGS64 =
|
CFLAGS64 =
|
||||||
CXXFLAGS = -Wall -Wno-sign-compare
|
CXXFLAGS = std=c++14 -Wall -Wno-sign-compare $(ARCHFLAGS)
|
||||||
CXXFLAGS32 =
|
CXXFLAGS32 =
|
||||||
CXXFLAGS64 =
|
CXXFLAGS64 =
|
||||||
LINKFLAGS =
|
LINKFLAGS =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user