Skip to content

Commit

Permalink
github actions to install boost from source
Browse files Browse the repository at this point in the history
  • Loading branch information
sima-fastly authored and sima committed Nov 14, 2023
1 parent 3f005dd commit aac0090
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 0 additions & 13 deletions qcm/boost.qcm
Original file line number Diff line number Diff line change
Expand Up @@ -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" };
Expand All @@ -36,10 +27,6 @@ public:
}
bool exec()
{
if (!isBoostInstalled()) {
return false;
}

QString boostIncludePath = findBoostIncludePath();
if (boostIncludePath.isEmpty()) {
return false;
Expand Down

0 comments on commit aac0090

Please sign in to comment.