Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
BUYT-1 committed Aug 14, 2024
1 parent 36419af commit ce47e7a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
27 changes: 21 additions & 6 deletions .github/composite-actions/download-libraries/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,31 @@ runs:
sudo apt-get install gcc-10 g++-10 cmake build-essential -y
shell: bash

- name: Install Boost
- name: Make lib directory
run: |
sudo add-apt-repository ppa:mhier/libboost-latest
sudo apt update
sudo apt-get install libboost1.81-all-dev -y
mkdir -p lib
shell: bash

- name: Make lib directory
- name: Cache Boost
uses: actions/cache@v3
id: cache-boost
with:
path: ${{github.workspace}}/lib/boost_1_81_0
key: ${{ runner.os }}-boost-81

- name: Download and unpack Boost
run: |
mkdir -p lib
cd ${{github.workspace}}/lib
wget -O boost_1_81_0.tar.gz https://sourceforge.net/projects/boost/files/boost/1.81.0/boost_1_81_0.tar.gz/download
tar xzf boost_1_81_0.tar.gz
shell: bash
if: steps.cache-boost.outputs.cache-hit != 'true'

- name: Install Boost
run: |
cd lib/boost_1_81_0
./bootstrap.sh --prefix=/usr
sudo ./b2 install --prefix=/usr || true
shell: bash

- name: Download googletest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:
only: ${{ matrix.only }}
env:
CIBW_BEFORE_ALL: >
cd lib/boost_1_81_0 &&
cd lib/boost_1_81_0 &&
./bootstrap.sh --prefix=/usr/local &&
./b2 install -j4 --prefix=/usr/local
CIBW_TEST_COMMAND: >
Expand Down

0 comments on commit ce47e7a

Please sign in to comment.