Skip to content

Commit 1cde033

Browse files
committed
Add example in the CI
1 parent 7f9e4d4 commit 1cde033

File tree

3 files changed

+57
-3
lines changed

3 files changed

+57
-3
lines changed

.github/workflows/linux.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ jobs:
3636
-DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX \
3737
-DCMAKE_PREFIX_PATH=$CONDA_PREFIX \
3838
-DSPARROW_IPC_BUILD_SHARED=${{ matrix.build_shared }} \
39-
-DSPARROW_IPC_BUILD_TESTS=ON
39+
-DSPARROW_IPC_BUILD_TESTS=ON \
40+
-DSPARROW_IPC_BUILD_EXAMPLES=ON
4041
4142
- name: Build sparrow-ipc
4243
working-directory: build
@@ -50,6 +51,14 @@ jobs:
5051
working-directory: build
5152
run: cmake --build . --target run_tests_with_junit_report
5253

54+
- name: Build example
55+
working-directory: build
56+
run: cmake --build . --target write_and_read_streams
57+
58+
- name: Run example
59+
working-directory: build
60+
run: cmake --build . --target run_example
61+
5362
- name: Install
5463
working-directory: build
5564
run: cmake --install .
@@ -71,6 +80,7 @@ jobs:
7180
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
7281
-DSPARROW_IPC_BUILD_SHARED=${{ matrix.build_shared }} \
7382
-DSPARROW_IPC_BUILD_TESTS=ON \
83+
-DSPARROW_IPC_BUILD_EXAMPLES=ON \
7484
-DFETCH_DEPENDENCIES_WITH_CMAKE=MISSING
7585
7686
- name: Build sparrow-ipc
@@ -85,6 +95,14 @@ jobs:
8595
working-directory: build
8696
run: cmake --build . --target run_tests_with_junit_report
8797

98+
- name: Build example
99+
working-directory: build
100+
run: cmake --build . --target write_and_read_streams
101+
102+
- name: Run example
103+
working-directory: build
104+
run: cmake --build . --target run_example
105+
88106
- name: Install
89107
working-directory: build
90108
run: sudo cmake --install .

.github/workflows/osx.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ jobs:
4141
-DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX \
4242
-DCMAKE_PREFIX_PATH=$CONDA_PREFIX \
4343
-DSPARROW_IPC_BUILD_SHARED=${{ matrix.build_shared }} \
44-
-DSPARROW_IPC_BUILD_TESTS=ON
44+
-DSPARROW_IPC_BUILD_TESTS=ON \
45+
-DSPARROW_IPC_BUILD_EXAMPLES=ON
4546
4647
- name: Build sparrow-ipc
4748
working-directory: build
@@ -55,6 +56,14 @@ jobs:
5556
working-directory: build
5657
run: cmake --build . --target run_tests_with_junit_report
5758

59+
- name: Build example
60+
working-directory: build
61+
run: cmake --build . --target write_and_read_streams
62+
63+
- name: Run example
64+
working-directory: build
65+
run: cmake --build . --target run_example
66+
5867
- name: Install
5968
working-directory: build
6069
run: cmake --install .
@@ -81,6 +90,7 @@ jobs:
8190
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
8291
-DSPARROW_IPC_BUILD_SHARED=${{ matrix.build_shared }} \
8392
-DSPARROW_IPC_BUILD_TESTS=ON \
93+
-DSPARROW_IPC_BUILD_EXAMPLES=ON \
8494
-DFETCH_DEPENDENCIES_WITH_CMAKE=MISSING
8595
8696
- name: Build sparrow-ipc
@@ -95,6 +105,14 @@ jobs:
95105
working-directory: build
96106
run: cmake --build . --target run_tests_with_junit_report
97107

108+
- name: Build example
109+
working-directory: build
110+
run: cmake --build . --target write_and_read_streams
111+
112+
- name: Run example
113+
working-directory: build
114+
run: cmake --build . --target run_example
115+
98116
- name: Install
99117
working-directory: build
100118
run: sudo cmake --install .

.github/workflows/windows.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ jobs:
4040
-DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX \
4141
-DCMAKE_PREFIX_PATH=$GLOB_PREFIX_PATH \
4242
-DSPARROW_IPC_BUILD_SHARED=${{ matrix.build_shared }} \
43-
-DSPARROW_IPC_BUILD_TESTS=ON
43+
-DSPARROW_IPC_BUILD_TESTS=ON \
44+
-DSPARROW_IPC_BUILD_EXAMPLES=ON
4445
4546
- name: Build sparrow-ipc
4647
working-directory: build
@@ -55,6 +56,14 @@ jobs:
5556
run: |
5657
cmake --build . --config ${{ matrix.build_type }} --target run_tests_with_junit_report
5758
59+
- name: Build example
60+
working-directory: build
61+
run: cmake --build . --config ${{ matrix.build_type }} --target write_and_read_streams
62+
63+
- name: Run example
64+
working-directory: build
65+
run: cmake --build . --config ${{ matrix.build_type }} --target run_example
66+
5867
- name: Install
5968
working-directory: build
6069
run: cmake --install . --config ${{ matrix.build_type }}
@@ -80,6 +89,7 @@ jobs:
8089
cmake -S ./ -B ./build \
8190
-DSPARROW_IPC_BUILD_SHARED=${{ matrix.build_shared }} \
8291
-DSPARROW_IPC_BUILD_TESTS=ON \
92+
-DSPARROW_IPC_BUILD_EXAMPLES=ON \
8393
-DFETCH_DEPENDENCIES_WITH_CMAKE=MISSING \
8494
$TEST_COVERAGE_ACTIVATION
8595
@@ -95,6 +105,14 @@ jobs:
95105
working-directory: build
96106
run: cmake --build . --config ${{ matrix.build_type }} --target run_tests_with_junit_report
97107

108+
- name: Build example
109+
working-directory: build
110+
run: cmake --build . --config ${{ matrix.build_type }} --target write_and_read_streams
111+
112+
- name: Run example
113+
working-directory: build
114+
run: cmake --build . --config ${{ matrix.build_type }} --target run_example
115+
98116
- name: Install
99117
working-directory: build
100118
run: cmake --install . --config ${{ matrix.build_type }}

0 commit comments

Comments
 (0)