-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove outdated Ubuntu18.04 jobs, Bump actions/checkout from 1.2.0 to…
… 4.1.1 * Bump actions/checkout from 1.2.0 to 4.1.1 Bumps [actions/checkout](https://github.com/actions/checkout) from 1.2.0 to 4.1.1. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v1.2.0...b4ffde6) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Remove outdated Ubuntu18.04 jobs Bump map dependency Switch to clang-format-14 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: berndgassmann <bernd.gassmann@intel.com>
- Loading branch information
1 parent
e6938e0
commit 8b763b1
Showing
13 changed files
with
170 additions
and
192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,86 @@ | ||
#!/bin/bash | ||
|
||
python3_pkgs="libpython3-dev python3 python3-pip python3-setuptools python3-wheel" | ||
python2_pkgs="libpython-dev python python-pip python-wheel python-setuptools" | ||
other_pkgs="build-essential castxml cmake libboost-all-dev libgtest-dev liblapacke-dev libopenblas-dev libpugixml-dev sqlite3" | ||
|
||
sudo apt-get update | ||
sudo apt-get install -y lsb-core | ||
sudo apt-get install -y --no-install-recommends build-essential castxml cmake libgtest-dev liblapacke-dev libopenblas-dev libpugixml-dev sqlite3 | ||
|
||
if [ `lsb_release -a | grep Release | grep 18.04 | wc -l` == 1 ]; then | ||
sudo add-apt-repository ppa:ubuntu-toolchain-r/test | ||
IS_PYTHON_3_10=0 | ||
echo "!!!!!!! Python version: ${PYTHON_BINDING_VERSION} !!!!!!!" | ||
if [ "${PYTHON_BINDING_VERSION}" == "3.10" ]; then | ||
echo "!!!!!!! Python version is 3.10 detected !!!!!!!" | ||
IS_PYTHON_3_10=1 | ||
fi | ||
|
||
sudo apt-get update | ||
sudo apt-get install -y --no-install-recommends ${other_pkgs} ${python3_pkgs} | ||
|
||
sudo pip3 install --upgrade setuptools==51.1.2 | ||
sudo pip3 install colcon-common-extensions xmlrunner pygccxml pyplusplus | ||
IS_UBUNTU_20_04=0 | ||
if [ `lsb_release -a | grep Release | grep "20.04" | wc -l` == 1 ]; then | ||
echo "!!!!!!! Ubuntu 20.04: remove python2 !!!!!!!" | ||
sudo apt autoremove python2 python2-dev -y | ||
IS_UBUNTU_20_04=1 | ||
if [ "${PYTHON_BINDING_VERSION}" == "" ]; then | ||
echo "!!!!!!! Setting default python version for Ubuntu20.04 !!!!!!!" | ||
IS_PYTHON_3_10=0 | ||
PYTHON_BINDING_VERSION="3.8" | ||
fi | ||
elif [ `lsb_release -a | grep Release | grep "22.04" | wc -l` == 1 ]; then | ||
if [ "${PYTHON_BINDING_VERSION}" == "" ]; then | ||
echo "!!!!!!! Setting default python version for Ubuntu22.04 !!!!!!!" | ||
IS_PYTHON_3_10=1 | ||
PYTHON_BINDING_VERSION="3.10" | ||
fi | ||
fi | ||
|
||
if [ `lsb_release -a | grep Release | grep 18.04 | wc -l` == 1 ]; then | ||
sudo apt-get install -y --no-install-recommends ${python2_pkgs} | ||
sudo pip2 install --upgrade setuptools==41.1.0 | ||
sudo pip2 install pygccxml==2.2.1 pyplusplus==1.8.4 xmlrunner | ||
if (( IS_UBUNTU_20_04 && IS_PYTHON_3_10 )); then | ||
echo "!!!!!!! Ubunut 20.04 and python 3.10: install python 3.10 and remove boost !!!!!!!" | ||
sudo add-apt-repository ppa:deadsnakes/ppa -y | ||
sudo apt-get update | ||
sudo apt-get install -y --no-install-recommends python${PYTHON_BINDING_VERSION}-full | ||
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.10 10 | ||
sudo apt autoremove libboost-all-dev -y | ||
else | ||
sudo apt-get install -y --no-install-recommends "python-is-python3" | ||
echo "!!!!!!! Not Ubuntu 20.04 or not python 3.10: install python${PYTHON_BINDING_VERSION} and boost !!!!!!!" | ||
sudo apt-get install -y --no-install-recommends python${PYTHON_BINDING_VERSION} | ||
sudo apt-get install -y --no-install-recommends libboost-all-dev | ||
fi | ||
|
||
sudo apt-get install -y --no-install-recommends python${PYTHON_BINDING_VERSION}-dev libpython${PYTHON_BINDING_VERSION}-dev | ||
curl -sS https://bootstrap.pypa.io/get-pip.py | sudo python${PYTHON_BINDING_VERSION} | ||
|
||
# to handle some error on missing pip dependencies | ||
sudo pip${PYTHON_BINDING_VERSION} install testresources | ||
sudo pip${PYTHON_BINDING_VERSION} install --upgrade setuptools==59.6.0 | ||
sudo pip${PYTHON_BINDING_VERSION} install colcon-common-extensions xmlrunner pygccxml pyplusplus | ||
|
||
if (( IS_UBUNTU_20_04 && IS_PYTHON_3_10 )); then | ||
echo "!!!!!!! Ubunut 20.04 and python 3.10: compile boost 1.80 !!!!!!!" | ||
pushd dependencies | ||
|
||
BOOST_VERSION=1.78.0 | ||
BOOST_PACKAGE_BASENAME=boost_${BOOST_VERSION//./_} | ||
wget "https://boostorg.jfrog.io/artifactory/main/release/${BOOST_VERSION}/source/${BOOST_PACKAGE_BASENAME}.tar.gz" | ||
|
||
tar -xzf ${BOOST_PACKAGE_BASENAME}.tar.gz | ||
pushd ${BOOST_PACKAGE_BASENAME} | ||
|
||
py3=`which python3.10` | ||
py3_root=`${py3} -c "import sys; print(sys.prefix)"` | ||
pyv=`$py3 -c "import sys;x='{v[0]}.{v[1]}'.format(v=list(sys.version_info[:2]));sys.stdout.write(x)";` | ||
|
||
./bootstrap.sh \ | ||
--prefix="/usr" \ | ||
--with-libraries=python,filesystem,system,program_options \ | ||
--with-python=${py3} --with-python-version=${pyv} --with-python-root=${py3_root} | ||
if (( $? )); then | ||
echo "!!!!!!! boost bootstrap failed !!!!!!!" | ||
cat bootstrap.log | ||
fi | ||
|
||
./b2 --prefix="/usr" cxxflags="-fPIC" -j 10 stage release | ||
sudo ./b2 --prefix="/usr" cxxflags="-fPIC" -j 10 install | ||
|
||
# ensure our colcon build process ignores boost sources | ||
touch COLCON_IGNORE | ||
|
||
popd | ||
popd | ||
|
||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.