forked from seznam/SuperiorMySqlpp
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (30 loc) · 847 Bytes
/
cmake.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
name: Build & Test
on:
push:
pull_request:
schedule:
- cron: '0 12 */7 * *'
env:
BUILD_TYPE: Debug
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install dependencies
run: sudo apt-get install libboost-system-dev libmariadb-dev-compat socat
- name: Configure CMake
run: |
mkdir ${{github.workspace}}/build
cd ${{github.workspace}}/build
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DTEST_EXTENDED_ENABLED=ON ..
- name: Build
working-directory: ${{github.workspace}}/build
run: |
cmake --build . --parallel 6
cmake --build . --parallel 6 --target test_odr
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest --output-on-failure