-
Notifications
You must be signed in to change notification settings - Fork 0
101 lines (80 loc) · 2.57 KB
/
c-cpp.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: C++ CI Searcher/Indexer
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Clone mongo-cxx-driver repository into /search/mongo-cxx-driver directory
- name: Clone mongo-cxx-driver repository for Search
run: git clone --branch releases/v3.10 https://github.com/mongodb/mongo-cxx-driver.git search/mongo-cxx-driver
# Clone mongo-cxx-driver repository into /indexer/mongo-cxx-driver directory
- name: Clone mongo-cxx-driver repository for Indexer
run: git clone --branch releases/v3.10 https://github.com/mongodb/mongo-cxx-driver.git indexer/mongo-cxx-driver
# Build mongo-cxx-driver for Search
- name: Build mongo-cxx-driver for Search
run: |
mkdir -p search/mongo-cxx-driver/buildcmake
pwd
cd search/mongo-cxx-driver/buildcmake
pwd
cmake ..
make
make install
- name: Set CMAKE_PREFIX_PATH for mongocxx and bsoncxx
run: export CMAKE_PREFIX_PATH=/Asura-Crow/search/mongo-cxx-driver/buildmake/src/mongocxx:/Asura-Crow/search/mongo-cxx-driver/buildmake/src/bsoncxx:$CMAKE_PREFIX_PATH
# Build mongo-cxx-driver for Indexer
#- name: Build mongo-cxx-driver for Indexer
# run: |
# mkdir -p indexer/mongo-cxx-driver/buildcmake
# cd indexer/mongo-cxx-driver/buildcmake
#cmake ..
#make
# Ensure directories exist and run build commands in /search/build directory
- name: Create search/build directory
run: |
mkdir -p search/build
pwd
- name: Configure in search/build
run: |
cd search/build
pwd
cmake ..
pwd
- name: Make in search/build
run: |
cd search/build
pwd
make
pwd
- name: Make check in search/build
run: |
cd search/build
make check
- name: Make distcheck in search/build
run: |
cd search/build
make distcheck
# Ensure directories exist and run build commands in /indexer/build directory
- name: Create indexer/build directory
run: mkdir -p indexer/build
- name: Configure in indexer/build
run: |
cd indexer/build
cmake ..
- name: Make in indexer/build
run: |
cd indexer/build
make
- name: Make check in indexer/build
run: |
cd indexer/build
make check
- name: Make distcheck in indexer/build
run: |
cd indexer/build
make distcheck