Skip to content

Commit

Permalink
Add CI build (#162)
Browse files Browse the repository at this point in the history
* add github action for building libmultisense
  • Loading branch information
QuentinTorg authored Oct 7, 2024
1 parent e692dcb commit 8cc733c
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build LibMultiSense

on:
push:
branches:
- master
release:
pull_request:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.ref_name }}-build
cancel-in-progress: ${{ github.ref_name != 'main' }}
steps:
- id: setup
run: |
sudo apt-get install libgtest-dev -y
- uses: actions/checkout@v4
- id: build-release
run: |
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=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_TESTS=ON -DCMAKE_INSTALL_PREFIX=install-debug
cmake --build build -j "$(nproc)"
make -C build test
cmake --install build

0 comments on commit 8cc733c

Please sign in to comment.