Skip to content

Commit 79827af

Browse files
committed
Update examples to 5.0.0-rc, build examples via .gitlab-ci.yml
1 parent f8c57c9 commit 79827af

File tree

7 files changed

+45
-9
lines changed

7 files changed

+45
-9
lines changed

.gitlab-ci.yml

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,43 @@
1-
image: objectboxio/cbuild-ubuntu18.04:2023-08-23
2-
3-
build:
1+
build:ubuntu18:
42
stage: build
53
tags: [x64, docker ]
4+
image: objectboxio/cbuild-ubuntu18.04:2023-08-23 # Uses non-default CMake 3.11
65
script:
76
- ./test.sh
7+
8+
build:ubuntu20:
9+
extends: build:ubuntu18
10+
image: objectboxio/cbuild-ubuntu20.04:2023-08-23
11+
12+
build:ubuntu24:
13+
extends: build:ubuntu18
14+
image: objectboxio/cbuild-ubuntu24.04:2025-09-30
15+
16+
build:rocky8:
17+
extends: build:ubuntu18
18+
image: objectboxio/cbuild-rocky8:2023-08-23
19+
20+
build:examples:
21+
stage: build
22+
tags: [x64, docker ]
23+
image: objectboxio/cbuild-ubuntu20.04:2023-08-23 # CMake 3.16; examples need at least CMake 3.14
24+
before_script:
25+
- apt-get update && apt-get install -y --no-install-recommends git
26+
script:
27+
- cd examples/c-tasks && ./build.sh
28+
- build/objectbox-examples-c-tasks "Buy raspberries"
29+
- build/objectbox-examples-c-tasks
30+
- cd ../c-tasks-lowlevel && ./build.sh
31+
- build/objectbox-examples-c-tasks-lowlevel "Buy blueberries"
32+
- build/objectbox-examples-c-tasks-lowlevel
33+
- cd ../tasks && ./build.sh
34+
- printf "new \"Buy apples\"\nls\nexit" | build/objectbox-examples-tasks
35+
- cd ../tasks-sync && ./build.sh
36+
- printf "new \"Buy bananas\"\nls\nexit" | build/objectbox-examples-tasks-sync
37+
- cd ../vectorsearch-cities && ./build.sh
38+
- printf "name berlin\nexit" | build/objectbox-examples-vectorsearch-cities
39+
40+
build:examples-ubuntu24.04:
41+
extends: build:examples
42+
image: objectboxio/cbuild-ubuntu24.04:2025-09-30
43+
before_script: []

examples/c-tasks-lowlevel/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if (NOT TARGET objectbox) # Using "if" in case a (potential) parent project alre
1717
FetchContent_Declare(
1818
objectbox
1919
GIT_REPOSITORY https://github.com/objectbox/objectbox-c.git
20-
GIT_TAG v4.3.1 # For latest versions, check https://github.com/objectbox/objectbox-c/releases
20+
GIT_TAG v5.0.0-rc # For latest versions, check https://github.com/objectbox/objectbox-c/releases
2121
)
2222
FetchContent_MakeAvailable(objectbox)
2323

examples/c-tasks/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if (NOT TARGET objectbox) # Using "if" in case a (potential) parent project alre
1717
FetchContent_Declare(
1818
objectbox
1919
GIT_REPOSITORY https://github.com/objectbox/objectbox-c.git
20-
GIT_TAG v4.3.1 # For latest versions, check https://github.com/objectbox/objectbox-c/releases
20+
GIT_TAG v5.0.0-rc # For latest versions, check https://github.com/objectbox/objectbox-c/releases
2121
)
2222
FetchContent_MakeAvailable(objectbox)
2323

examples/tasks-sync/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if (NOT TARGET objectbox) # Using "if" in case a (potential) parent project alre
1717
FetchContent_Declare(
1818
objectbox
1919
GIT_REPOSITORY https://github.com/objectbox/objectbox-c.git
20-
GIT_TAG v4.3.1 # For latest versions, check https://github.com/objectbox/objectbox-c/releases
20+
GIT_TAG v5.0.0-rc # For latest versions, check https://github.com/objectbox/objectbox-c/releases
2121
)
2222
FetchContent_MakeAvailable(objectbox)
2323

examples/tasks/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if (NOT TARGET objectbox) # Using "if" in case a (potential) parent project alre
1717
FetchContent_Declare(
1818
objectbox
1919
GIT_REPOSITORY https://github.com/objectbox/objectbox-c.git
20-
GIT_TAG v4.3.1 # For latest versions, check https://github.com/objectbox/objectbox-c/releases
20+
GIT_TAG v5.0.0-rc # For latest versions, check https://github.com/objectbox/objectbox-c/releases
2121
)
2222
FetchContent_MakeAvailable(objectbox)
2323

examples/vectorsearch-cities/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if (NOT TARGET objectbox) # Using "if" in case a (potential) parent project alre
1717
FetchContent_Declare(
1818
objectbox
1919
GIT_REPOSITORY https://github.com/objectbox/objectbox-c.git
20-
GIT_TAG v4.3.1 # For latest versions, check https://github.com/objectbox/objectbox-c/releases
20+
GIT_TAG v5.0.0-rc # For latest versions, check https://github.com/objectbox/objectbox-c/releases
2121
)
2222
FetchContent_MakeAvailable(objectbox)
2323

include/objectbox-sync.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1438,4 +1438,4 @@ class AbstractCustomMsgServer {
14381438
};
14391439

14401440
/**@}*/ // end of doxygen group
1441-
} // namespace obx
1441+
} // namespace obx

0 commit comments

Comments
 (0)