Skip to content

Commit

Permalink
add Linux cross build, build Data libs on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
obiltschnig committed Jun 17, 2021
1 parent 13e62ef commit dd0ce69
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 9 deletions.
28 changes: 21 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
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: 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: >-
sudo -s
Expand All @@ -16,7 +16,7 @@ jobs:
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: 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: >-
sudo -s
Expand All @@ -27,7 +27,7 @@ jobs:
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: 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: >-
sudo -s
Expand All @@ -38,20 +38,34 @@ jobs:
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: 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: >-
cd cmake-build &&
sudo -s
PWD=`pwd`
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:
runs-on: macos-10.15
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: brew install openssl mysql-client unixodbc libpq
- run: ./configure --everything --no-prefix --omit=PDF && make all -s -j4
- run: >-
sudo -s
CPPUNIT_IGNORE="N7CppUnit10TestCallerI10ThreadTestEE.testTrySleep,N7CppUnit10TestCallerI13TimestampTestEE.testTimestamp,N7CppUnit10TestCallerI18ExpireLRUCacheTestEE.testExpireN,N7CppUnit10TestCallerI18ExpireLRUCacheTestEE.testAccessExpireN,N7CppUnit10TestCallerI24UniqueExpireLRUCacheTestEE.testExpireN,N7CppUnit10TestCallerI18ExpireLRUCacheTestEE.testAccessExpireN,N7CppUnit10TestCallerI11PollSetTestEE.testPollClosedServer"
Expand All @@ -62,7 +76,7 @@ jobs:
runs-on: macos-10.15
steps:
- 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: >-
cd cmake-build &&
Expand Down
5 changes: 3 additions & 2 deletions build/config/ARM-Linux
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ LINKMODE ?= SHARED
TOOL ?= arm-linux
POCO_TARGET_OSNAME = Linux
POCO_TARGET_OSARCH ?= armv7l
ARCHFLAGS ?=

#
# Define Tools
Expand Down Expand Up @@ -39,10 +40,10 @@ SHAREDLIBLINKEXT = .so
#
# Compiler and Linker Flags
#
CFLAGS = -std=c99
CFLAGS = -std=c11 $(ARCHFLAGS)
CFLAGS32 =
CFLAGS64 =
CXXFLAGS = -Wall -Wno-sign-compare
CXXFLAGS = std=c++14 -Wall -Wno-sign-compare $(ARCHFLAGS)
CXXFLAGS32 =
CXXFLAGS64 =
LINKFLAGS =
Expand Down

0 comments on commit dd0ce69

Please sign in to comment.