Release/v1.5 #96
Workflow file for this run
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
name: CMake | |
on: | |
push: | |
branches: [main, v1.x] | |
pull_request: | |
branches: [main, v1.x] | |
workflow_dispatch: | |
env: | |
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | |
BUILD_TYPE: Release | |
jobs: | |
build-ubuntu-22: | |
# Use GitHub-hosted Ubuntu 22.04 runner | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build and install dependencies | |
# Build and install all dependencies to RDK installation directory. | |
run: | | |
cd ${{github.workspace}} | |
cd thirdparty | |
bash build_and_install_dependencies.sh ~/rdk_install $(nproc) | |
- name: Build and install library | |
# Configure CMake, then build and install the flexiv_rdk INTERFACE library to RDK installation directory. | |
run: | | |
cd ${{github.workspace}} | |
mkdir -p build && cd build | |
cmake .. -DCMAKE_INSTALL_PREFIX=~/rdk_install | |
make install | |
- name: Build examples | |
# Find and link to the flexiv_rdk INTERFACE library, then build all examples. | |
run: | | |
cd ${{github.workspace}}/example | |
mkdir -p build && cd build | |
cmake .. -DCMAKE_INSTALL_PREFIX=~/rdk_install | |
make -j$(nproc) | |
- name: Build tests | |
# Find and link to the flexiv_rdk INTERFACE library, then build all tests. | |
run: | | |
cd ${{github.workspace}}/test | |
mkdir -p build && cd build | |
cmake .. -DCMAKE_INSTALL_PREFIX=~/rdk_install | |
make -j$(nproc) | |
build-ubuntu-20: | |
# Use GitHub-hosted Ubuntu 20.04 runner | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build and install dependencies | |
# Build and install all dependencies to RDK installation directory. | |
run: | | |
cd ${{github.workspace}} | |
cd thirdparty | |
bash build_and_install_dependencies.sh ~/rdk_install $(nproc) | |
- name: Build and install library | |
# Configure CMake, then build and install the flexiv_rdk INTERFACE library to RDK installation directory. | |
run: | | |
cd ${{github.workspace}} | |
mkdir -p build && cd build | |
cmake .. -DCMAKE_INSTALL_PREFIX=~/rdk_install | |
make install | |
- name: Build examples | |
# Find and link to the flexiv_rdk INTERFACE library, then build all examples. | |
run: | | |
cd ${{github.workspace}}/example | |
mkdir -p build && cd build | |
cmake .. -DCMAKE_INSTALL_PREFIX=~/rdk_install | |
make -j$(nproc) | |
- name: Build tests | |
# Find and link to the flexiv_rdk INTERFACE library, then build all tests. | |
run: | | |
cd ${{github.workspace}}/test | |
mkdir -p build && cd build | |
cmake .. -DCMAKE_INSTALL_PREFIX=~/rdk_install | |
make -j$(nproc) | |
build-macos-12: | |
# Use self-hosted macOS 12 runner with arm64 processor | |
runs-on: [self-hosted, macos-12, ARM64] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build and install dependencies | |
# Build and install all dependencies to RDK installation directory. | |
run: | | |
cd ${{github.workspace}} | |
cd thirdparty | |
bash build_and_install_dependencies.sh ~/rdk_install $(sysctl -n hw.ncpu) | |
- name: Build and install library | |
# Configure CMake, then build and install the flexiv_rdk INTERFACE library to RDK installation directory. | |
run: | | |
cd ${{github.workspace}} | |
mkdir -p build && cd build | |
cmake .. -DCMAKE_INSTALL_PREFIX=~/rdk_install | |
make install | |
- name: Build examples | |
# Find and link to the flexiv_rdk INTERFACE library, then build all examples. | |
run: | | |
cd ${{github.workspace}}/example | |
mkdir -p build && cd build | |
cmake .. -DCMAKE_INSTALL_PREFIX=~/rdk_install | |
make -j$(sysctl -n hw.ncpu) | |
- name: Build tests | |
# Find and link to the flexiv_rdk INTERFACE library, then build all tests. | |
run: | | |
cd ${{github.workspace}}/test | |
mkdir -p build && cd build | |
cmake .. -DCMAKE_INSTALL_PREFIX=~/rdk_install | |
make -j$(sysctl -n hw.ncpu) | |
build-windows-2022: | |
# Use GitHub-hosted Windows 2022 runner | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build and install dependencies | |
# Build and install all dependencies to RDK installation directory. | |
run: | | |
cd ${{github.workspace}} | |
cd thirdparty | |
bash build_and_install_dependencies.sh ~/rdk_install $(nproc) | |
- name: Build and install library | |
# Configure CMake, then build and install the flexiv_rdk INTERFACE library to RDK installation directory. | |
run: | | |
cd ${{github.workspace}} | |
mkdir build && cd build | |
cmake .. -DCMAKE_INSTALL_PREFIX=~/rdk_install | |
cmake --build . --target install --config Release | |
- name: Build examples | |
# Find and link to the flexiv_rdk INTERFACE library, then build all examples. | |
run: | | |
cd ${{github.workspace}}/example | |
mkdir build && cd build | |
cmake .. -DCMAKE_INSTALL_PREFIX=~/rdk_install | |
cmake --build . --config Release -j $(nproc) | |
- name: Build tests | |
# Find and link to the flexiv_rdk INTERFACE library, then build all tests. | |
run: | | |
cd ${{github.workspace}}/test | |
mkdir build && cd build | |
cmake .. -DCMAKE_INSTALL_PREFIX=~/rdk_install | |
cmake --build . --config Release -j $(nproc) |