Skip to content

Commit

Permalink
Fix path
Browse files Browse the repository at this point in the history
  • Loading branch information
pzhu-flexiv committed Nov 26, 2024
1 parent 25a8688 commit eaa2ec7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: ./.github/workflows/shared_steps
with:
repo_root_path: ${{github.workspace}}

build-ubuntu-20:
# GitHub-hosted Ubuntu 20.04 runner
Expand All @@ -27,6 +29,8 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: ./.github/workflows/shared_steps
with:
repo_root_path: ${{github.workspace}}

build-macos-12:
# GitHub-hosted macOS 14 runner with M1 chip
Expand All @@ -35,6 +39,8 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: ./.github/workflows/shared_steps
with:
repo_root_path: ${{github.workspace}}

build-windows-2022:
# GitHub-hosted Windows 2022 runner
Expand All @@ -43,3 +49,5 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: ./.github/workflows/shared_steps
with:
repo_root_path: ${{github.workspace}}
13 changes: 9 additions & 4 deletions .github/workflows/shared_steps/action.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
name: "Shared Build Steps"
inputs:
repo_root_path:
description: "Path to flexiv_rdk repo"
required: true
runs:
using: "composite"
steps:
# Build and install all dependencies to RDK installation directory.
- name: Build and install dependencies
shell: bash
run: |
cd ${{github.workspace}}
echo "flexiv_rdk path: ${{ inputs.repo_root_path }}"
cd ${{ inputs.repo_root_path }}
cd thirdparty
bash build_and_install_dependencies.sh ~/rdk_install 4
# Configure CMake, then build and install flexiv_rdk library to RDK installation directory.
- name: Build and install library
shell: bash
run: |
cd ${{github.workspace}}
cd ${{ inputs.repo_root_path }}
mkdir -p build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=~/rdk_install
make install
Expand All @@ -23,7 +28,7 @@ runs:
- name: Build examples
shell: bash
run: |
cd ${{github.workspace}}/example
cd ${{ inputs.repo_root_path }}/example
mkdir -p build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=~/rdk_install
make -j4
Expand All @@ -32,7 +37,7 @@ runs:
- name: Build tests
shell: bash
run: |
cd ${{github.workspace}}/test
cd ${{ inputs.repo_root_path }}/test
mkdir -p build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=~/rdk_install
make -j4

0 comments on commit eaa2ec7

Please sign in to comment.