-
Notifications
You must be signed in to change notification settings - Fork 88
58 lines (54 loc) · 1.48 KB
/
c++.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
56
57
58
name: C++ Example Tests
on:
pull_request:
paths:
- "examples/cpp/**"
jobs:
tests:
runs-on: macOS-12
steps:
- uses: actions/checkout@v3
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
alpha:
- 'examples/cpp/alpha/**'
beta-asymmetric:
- 'examples/cpp/beta/asymmetric/**'
beta-local:
- 'examples/cpp/beta/local/**'
beta-sync:
- 'examples/cpp/beta/sync/**'
- name: Realm C++ Alpha Tests
if: steps.filter.outputs.alpha == 'true'
run: |
cd examples/cpp/alpha
mkdir build && cd build
cmake ..
make
./examples
- name: Realm C++ Beta Asymmetric Tests
if: steps.filter.outputs.beta-asymmetric == 'true'
run: |
cd examples/cpp/beta/asymmetric
mkdir build && cd build
cmake ..
make
./examples-beta-asymmetric
- name: Realm C++ Beta Local Tests
if: steps.filter.outputs.beta-local == 'true'
run: |
cd examples/cpp/beta/local
mkdir build && cd build
cmake ..
make
./examples-beta-local
- name: Realm C++ Beta Flexible Sync Tests
if: steps.filter.outputs.beta-sync == 'true'
run: |
cd examples/cpp/beta/sync
mkdir build && cd build
cmake ..
make
./examples-beta-sync