-
Notifications
You must be signed in to change notification settings - Fork 12
34 lines (32 loc) · 922 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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