-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 940 Bytes
/
default.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
35
36
37
38
39
40
name: default
on:
push:
branches:
- '**'
- '!main'
- '!release*'
- '!experiment-*'
pull_request:
branches:
- 'main'
- 'devel'
jobs:
build:
strategy:
matrix:
os: [ ubuntu-20.04, ubuntu-22.04 ]
runs-on: ${{ matrix.os }}
steps:
- name: Clean up workspace
uses: rtCamp/action-cleanup@master
- name: Chown user
run: |
sudo chown -R $USER:$USER $GITHUB_WORKSPACE
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y software-properties-common
- name: Build library
run: |
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=ON -DASAN_CHECK=OFF ..
cmake --build . && cpack
- name: Run unit test
run: |
cd ${GITHUB_WORKSPACE}/build
ctest