Skip to content

Commit

Permalink
Use globally specific boost version in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
toadharvard committed Nov 18, 2023
1 parent 957adcb commit 51c48db
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions .github/composite-actions/download-libraries/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,38 @@ runs:
using: 'composite'
steps:
- uses: actions/checkout@v3
- name: Make lib directory
run: |
mkdir -p lib
shell: bash

- name: Install build tools
run: |
sudo apt-get update -y
sudo apt-get install gcc-10 g++-10 cmake build-essential -y
shell: bash

- name: Install Boost
run: sudo apt-get install libboost-all-dev -y
- name: Cache Boost
uses: actions/cache@v3
id: cache-boost
with:
path: ${{github.workspace}}/lib/boost
key: ${{ runner.os }}-boost-78

- name: Download and compile Boost
run: |
cd lib
wget -O boost_1_78_0.tar.gz https://sourceforge.net/projects/boost/files/boost/1.78.0/boost_1_78_0.tar.gz/download
tar xzvf boost_1_78_0.tar.gz
cd boost_1_78_0
sudo ./bootstrap.sh --prefix=${{github.workspace}}/lib/boost
sudo ./b2 install --prefix=${{github.workspace}}/lib/boost
shell: bash
if: steps.cache-boost.outputs.cache-hit != 'true'

- name: Make lib directory
- name: Move compiled Boost to /usr/local
run: |
mkdir -p lib
sudo cp -R ${{github.workspace}}/lib/boost/* /usr/local/
shell: bash

- name: Download googletest
Expand Down

0 comments on commit 51c48db

Please sign in to comment.