-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
86fc594
commit 98c7d41
Showing
2 changed files
with
44 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: "Shared Build Steps" | ||
runs: | ||
using: "composite" | ||
steps: | ||
# Build and install all dependencies to RDK installation directory. | ||
- name: Build and install dependencies | ||
run: | | ||
cd ${{github.workspace}} | ||
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 | ||
run: | | ||
cd ${{github.workspace}} | ||
mkdir -p build && cd build | ||
cmake .. -DCMAKE_INSTALL_PREFIX=~/rdk_install | ||
make install | ||
# Find and link to flexiv_rdk library, then build all example programs. | ||
- name: Build examples | ||
run: | | ||
cd ${{github.workspace}}/example | ||
mkdir -p build && cd build | ||
cmake .. -DCMAKE_INSTALL_PREFIX=~/rdk_install | ||
make -j4 | ||
# Find and link to flexiv_rdk library, then build all test programs. | ||
- name: Build tests | ||
run: | | ||
cd ${{github.workspace}}/test | ||
mkdir -p build && cd build | ||
cmake .. -DCMAKE_INSTALL_PREFIX=~/rdk_install | ||
make -j4 |