diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 73e4c1a7..e0e2fcbc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -41,7 +41,16 @@ jobs: run: cargo install cargo-audit shell: bash - name: Install deps - run: sudo apt-get update && sudo apt-get install -y make g++ libssl-dev qtbase5-dev libboost-dev + run: sudo apt-get update && sudo apt-get install -y make g++ libssl-dev qtbase5-dev + - name: Install Boost (from source) + run: | + wget https://boostorg.jfrog.io/artifactory/main/release/1.83.0/source/boost_1_83_0.tar.bz2 + tar --bzip2 -xf boost_1_83_0.tar.bz2 + cd boost_1_83_0/ + ./bootstrap.sh --prefix=/usr/local + sudo ./b2 install --prefix=/usr/local + sudo ldconfig + cat /usr/local/include/boost/version.hpp | grep "BOOST_LIB_VERSION" - name: fmt run: cargo fmt --check shell: bash diff --git a/qcm/boost.qcm b/qcm/boost.qcm index 393a592b..bd150b80 100644 --- a/qcm/boost.qcm +++ b/qcm/boost.qcm @@ -11,15 +11,6 @@ public: qc_boost(Conf *c) : ConfObj(c) {} QString name() const { return "Boost.Signals2"; } QString shortname() const { return "boost"; } - bool isBoostInstalled() - { - QProcess process; - process.start("bash", QStringList() << "-c" << "dpkg -l | grep libboost"); - process.waitForFinished(); - QString output(process.readAllStandardOutput()); - - return output.contains("libboost"); - } QString findBoostIncludePath() { QStringList possiblePaths = { "/usr/local/include", "/usr/include" }; @@ -36,10 +27,6 @@ public: } bool exec() { - if (!isBoostInstalled()) { - return false; - } - QString boostIncludePath = findBoostIncludePath(); if (boostIncludePath.isEmpty()) { return false;