Skip to content

Add CI build

Add CI build #2

Workflow file for this run

name: Build LibMultiSense
on:
push:
branches:
- master
release:
pull_request:
branches:
- master
jobs:
build:
concurrency:

Check failure on line 14 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / Build LibMultiSense

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 14, Col: 5): Required property is missing: runs-on
group: ${{ github.ref_name }}-build
cancel-in-progress: ${{ github.ref_name != 'main' }}
steps:
- uses: actions/checkout@v3
with:
path: repo
- id: build-release
run: |
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DCMAKE_INSTALL_PREFIX=install-release
cmake --build build -j "$(nproc)"
make -C build test
cmake --install build
- id: build-debug
run: |
cmake -B build -S . -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=ON -DCMAKE_INSTALL_PREFIX=install-debug
cmake --build build -j "$(nproc)"
make -C build test
cmake --install build