Skip to content

Release/v1.5.1

Release/v1.5.1 #100

Workflow file for this run

name: CMake

Check failure on line 1 in .github/workflows/cmake.yml

View workflow run for this annotation

GitHub Actions / CMake

Invalid workflow file

The workflow is not valid. .github/workflows/cmake.yml: Anchors are not currently supported. Remove the anchor 'shared-steps'
on:
push:
branches: [main, v0.x]
pull_request:
branches: [main, v0.x]
workflow_dispatch:
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
build-ubuntu-22:
# GitHub-hosted Ubuntu 22.04 runner
runs-on: ubuntu-22.04
# The steps are the same across all jobs
steps: &shared-steps
- uses: actions/checkout@v2
# 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
build-ubuntu-20:
# GitHub-hosted Ubuntu 20.04 runner
runs-on: ubuntu-20.04
# Use shared steps
steps:
- *shared-steps
build-macos-12:
# GitHub-hosted macOS 14 runner with M1 chip
runs-on: macos-14
# Use shared steps
steps:
- *shared-steps
build-windows-2022:
# GitHub-hosted Windows 2022 runner
runs-on: windows-2022
# Use shared steps
steps:
- *shared-steps