Linux CI modernization (#4285)

* linux CI modernization
- remove 16.04 python builds
- switch 16.04 java build to 20.04

* update

* update

* use dynamic libs
-fPIC never ceases to amuse

* specify swig version

* force swig3

* force swig3

* re-enable the other tests
This commit is contained in:
Greg Landrum
2021-06-30 11:09:26 +02:00
committed by GitHub
parent f2e9e3a031
commit b50e799da1
3 changed files with 7 additions and 23 deletions

View File

@@ -1,17 +1,12 @@
steps:
- bash: |
sudo apt-get install -y software-properties-common zlib1g zlib1g-dev swig
sudo add-apt-repository -y ppa:csaba-kertesz/random
sudo apt-get update
sudo apt-get install -y boost1.58
cd /opt
wget -q https://cmake.org/files/v3.12/cmake-3.12.0-Linux-x86_64.tar.gz
tar xzf cmake-3.12.0-Linux-x86_64.tar.gz
sudo apt-get install -y software-properties-common zlib1g zlib1g-dev swig3.0
sudo apt-get install -y libboost-all-dev libfreetype-dev libeigen3-dev
displayName: Setup build environment
- bash: |
export CXX=/usr/bin/g++
export CC=/usr/bin/gcc
export PATH=/opt/cmake-3.12.0-Linux-x86_64/bin:$PATH
mkdir build && cd build && \
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
@@ -34,7 +29,7 @@ steps:
-DRDK_BUILD_THREADSAFE_SSS=ON \
-DRDK_TEST_MULTITHREADED=ON \
-DBoost_NO_SYSTEM_PATHS=ON \
-DBoost_USE_STATIC_LIBS=ON
-DBoost_NO_BOOST_CMAKE=TRUE
displayName: Configure build (Run CMake)
- bash: |
cd build

View File

@@ -1,4 +1,4 @@
find_package(SWIG REQUIRED)
find_package(SWIG 3.0 EXACT REQUIRED)
include(${SWIG_USE_FILE})
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})

View File

@@ -16,17 +16,6 @@ jobs:
python_name: python38
steps:
- template: .azure-pipelines/linux_build.yml
- job: Ubuntu_16_04_x64_py37
timeoutInMinutes: 90
pool:
vmImage: ubuntu-16.04
variables:
compiler: gxx_linux-64=7.2.0
boost_version: 1.67.0
number_of_cores: nproc
python_name: python37
steps:
- template: .azure-pipelines/linux_build_py37.yml
- job: macOS_10_13_x64
timeoutInMinutes: 90
pool:
@@ -61,12 +50,12 @@ jobs:
python_name: python37
steps:
- template: .azure-pipelines/vs_build_dll.yml
- job: Ubuntu_16_04_x64_java
- job: Ubuntu_20_04_x64_java
timeoutInMinutes: 90
pool:
vmImage: ubuntu-16.04
vmImage: ubuntu-20.04
variables:
compiler: gxx_linux-64=7.2.0
compiler: gxx_linux-64=9.3.0
boost_version: 1.67.0
number_of_cores: nproc
python_name: python37