Skip to content

Commit

Permalink
Fix Actions config after Boost change.
Browse files Browse the repository at this point in the history
Fixing Github Actions config after Github removal of Boost from Actions
images (actions/runner-images#2667).
  • Loading branch information
robertbartel committed Mar 11, 2021
1 parent bfe2332 commit 81aa4e2
Showing 1 changed file with 34 additions and 2 deletions.
36 changes: 34 additions & 2 deletions .github/workflows/test_and_validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,24 @@ jobs:
- name: git submodule
run: git submodule update --init --recursive -- test/googletest

- name: Cache Boost Dependency
id: cache-boost-dep
uses: actions/cache@v1
with:
path: boost_1_72_0
key: unix-boost-dep

- name: Get Boost Dependency
if: steps.cache-boost-dep.outputs.cache-hit != 'true'
run: |
curl -L -O https://dl.bintray.com/boostorg/release/1.72.0/source/boost_1_72_0.tar.bz2
tar xjf boost_1_72_0.tar.bz2
- name: cmake_init_build
run: cmake -B cmake_build -DBMI_C_LIB_ACTIVE:BOOL=OFF -S .
run: |
export BOOST_ROOT="$(pwd)/boost_1_72_0"
[ ! -d "$BOOST_ROOT" ] && echo "Error: no Boost root found at $BOOST_ROOT" && exit 1
cmake -B cmake_build -DBMI_C_LIB_ACTIVE:BOOL=OFF -S .
- name: build_tests
run: cmake --build cmake_build --target test_unit
Expand Down Expand Up @@ -61,8 +77,24 @@ jobs:
- name: build_cfe_build_shared_lib
run: cmake --build extern/cfe/cmake_cfe_lib --target cfemodel

- name: Cache Boost Dependency
id: cache-boost-dep
uses: actions/cache@v1
with:
path: boost_1_72_0
key: unix-boost-dep

- name: Get Boost Dependency
if: steps.cache-boost-dep.outputs.cache-hit != 'true'
run: |
curl -L -O https://dl.bintray.com/boostorg/release/1.72.0/source/boost_1_72_0.tar.bz2
tar xjf boost_1_72_0.tar.bz2
- name: cmake_init_build
run: cmake -B cmake_build -DBMI_C_LIB_ACTIVE:BOOL=ON -DBMI_C_LIB_NAME:STRING=cfemodel -DBMI_C_LIB_DIR:STRING=./extern/cfe/cmake_cfe_lib -S .
run: |
export BOOST_ROOT="$(pwd)/boost_1_72_0"
[ ! -d "$BOOST_ROOT" ] && echo "Error: no Boost root found at $BOOST_ROOT" && exit 1
cmake -B cmake_build -DBMI_C_LIB_ACTIVE:BOOL=ON -DBMI_C_LIB_NAME:STRING=cfemodel -DBMI_C_LIB_DIR:STRING=./extern/cfe/cmake_cfe_lib -S .
- name: build_bmi_c_tests
run: cmake --build cmake_build --target test_bmi_c
Expand Down

0 comments on commit 81aa4e2

Please sign in to comment.