Skip to content

Commit

Permalink
GITHUB: Fixed boost dep in CI
Browse files Browse the repository at this point in the history
Added missing boost fetch before build

Signed-off-by: Oleg Vorobiov <[email protected]>
  • Loading branch information
Oleg Vorobiov committed Aug 3, 2022
1 parent 21a7269 commit 21110dd
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/actions/setup-conan/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "Set up conan"
description: "Set up conan using pip"
runs:
using: "composite"
steps:
# Disabled, because composite run steps don't support "using" yet
# - name: set up python
# uses: actions/setup-python@v1
# with:
# python-version: '3.x'

- name: install conan
run: |
python -m pip install --upgrade pip
pip install --upgrade conan
shell: bash

- name: setup conan profile
run: |
conan profile new default --detect
conan profile show default
shell: bash
21 changes: 21 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,26 @@ jobs:
- name: Clone submodules
run: git submodule init && git submodule update

- name: Python Setup
uses: actions/setup-python@v1
with:
python-version: '3.x'
- uses: ./.github/actions/setup-conan

- name: Downloading Windows Dependencies
if: runner.os == 'Windows'
run: |
${boostroot} = "${env:GITHUB_WORKSPACE}\boost_install"
conan install boost/1.72.0@ -o boost:header_only=True -g deploy --install-folder ${boostroot}
dir ${boostroot}
dir ${boostroot}\boost
echo "BOOST_ROOT=${boostroot}\boost" >> ${env:GITHUB_ENV}
- name: Downloading Linux Dependencies
if: runner.os != 'Windows'
run: |
sudo apt-get install -y libboost-dev
# Configure CMake projects
- name: Configure Driver CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
Expand Down Expand Up @@ -67,3 +87,4 @@ jobs:
name: test-poser-${{ inputs.platform }}
# could have different extensions depending on the platform
path: bindings/cpp/examples/uduTest/output/test_poser

0 comments on commit 21110dd

Please sign in to comment.