-
Notifications
You must be signed in to change notification settings - Fork 31
55 lines (46 loc) · 1.31 KB
/
buildAndTestDatabaseIteratorsStandalone.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Database Iterators Standalone
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build:
name: Build and Test
runs-on: ubuntu-22.04
env:
LLVM_SYMBOLIZER_PATH: /usr/lib/llvm-14/bin/llvm-symbolizer
steps:
- name: Set up Python
uses: actions/setup-python@13ae5bb136fac2878aff31522b9efb785519f984 # v4.3.0
with:
python-version: 3.11
- name: Checkout project
uses: actions/checkout@v3
with:
path: sandbox
- name: Install Ninja
uses: llvm/actions/install-ninja@6a57890d0e3f9f35dfc72e7e48bc5e1e527cdd6c # Jan 17
- name: Install doxygen
run: |
sudo apt-get install -y doxygen graphviz
- name: Define build dir
run: |
echo "DATABASE_ITERATORS_STANDALONE_BUILD_DIR=${GITHUB_WORKSPACE}/sandbox/examples/database-iterators-standalone/build" >> $GITHUB_ENV
- name: Setup CMake
run: |
mkdir ${DATABASE_ITERATORS_STANDALONE_BUILD_DIR}
cd ${DATABASE_ITERATORS_STANDALONE_BUILD_DIR}
cmake -G Ninja ..
- name: Build
run: |
cd ${DATABASE_ITERATORS_STANDALONE_BUILD_DIR}
ninja
ninja DatabaseIteratorsDocs
- name: Test
run: |
cd ${DATABASE_ITERATORS_STANDALONE_BUILD_DIR}
ninja test