From 9d470e87a570f055653e70c44169d62ddb15578b Mon Sep 17 00:00:00 2001 From: Varun Agrawal Date: Wed, 1 Mar 2023 16:44:13 -0500 Subject: [PATCH] install boost for Ubuntu with apt --- .github/scripts/boost.sh | 18 ------------------ .github/workflows/build-linux.yml | 3 +-- .github/workflows/build-special.yml | 3 +-- 3 files changed, 2 insertions(+), 22 deletions(-) delete mode 100644 .github/scripts/boost.sh diff --git a/.github/scripts/boost.sh b/.github/scripts/boost.sh deleted file mode 100644 index 3c7e01274..000000000 --- a/.github/scripts/boost.sh +++ /dev/null @@ -1,18 +0,0 @@ -### Script to install Boost -BOOST_FOLDER=boost_${BOOST_VERSION//./_} - -# Download Boost -wget https://boostorg.jfrog.io/artifactory/main/release/${BOOST_VERSION}/source/${BOOST_FOLDER}.tar.gz - -# Unzip -tar -zxf ${BOOST_FOLDER}.tar.gz - -# Bootstrap -cd ${BOOST_FOLDER}/ -./bootstrap.sh --with-libraries=serialization,filesystem,thread,system,atomic,date_time,timer,chrono,program_options,regex - -# Build and install -sudo ./b2 -j$(nproc) install - -# Rebuild ld cache -sudo ldconfig diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index b678a71db..c801bb275 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -12,7 +12,6 @@ jobs: CTEST_PARALLEL_LEVEL: 2 CMAKE_BUILD_TYPE: ${{ matrix.build_type }} GTSAM_BUILD_UNSTABLE: ${{ matrix.build_unstable }} - BOOST_VERSION: 1.67.0 strategy: fail-fast: true @@ -82,7 +81,7 @@ jobs: - name: Install Boost run: | - bash .github/scripts/boost.sh + sudo apt-get -y install libboost-all-dev - name: Build and Test run: bash .github/scripts/unix.sh -t diff --git a/.github/workflows/build-special.yml b/.github/workflows/build-special.yml index 7582bf41c..02d19668c 100644 --- a/.github/workflows/build-special.yml +++ b/.github/workflows/build-special.yml @@ -12,7 +12,6 @@ jobs: CTEST_PARALLEL_LEVEL: 2 CMAKE_BUILD_TYPE: ${{ matrix.build_type }} GTSAM_BUILD_UNSTABLE: ON - BOOST_VERSION: 1.67.0 strategy: fail-fast: false @@ -100,7 +99,7 @@ jobs: - name: Install Boost if: runner.os == 'Linux' run: | - bash .github/scripts/boost.sh + sudo apt-get -y install libboost-all-dev - name: Install (macOS) if: runner.os == 'macOS'