File tree 1 file changed +9
-5
lines changed
1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -16,14 +16,20 @@ jobs:
16
16
build :
17
17
18
18
runs-on : ubuntu-latest
19
-
19
+
20
+ strategy :
21
+ matrix :
22
+ external-gtest : [ YES, NO ]
23
+
24
+ name : Build with external_gtest=${{ matrix.external-gtest }}
25
+
20
26
steps :
21
27
- uses : actions/checkout@v1
22
28
with :
23
29
submodules : recursive
24
30
- name : install deps
25
31
run : |
26
- sudo apt update && sudo apt-get install libssl-dev sqlite3 libsqlite3-dev cmake libcurl4 libcurl4-openssl-dev uuid-dev
32
+ sudo apt update && sudo apt-get install libssl-dev sqlite3 libsqlite3-dev cmake libcurl4 libcurl4-openssl-dev uuid-dev libgtest-dev
27
33
28
34
- name : Create Build Environment
29
35
# Some projects don't allow in-source building, so create a separate build directory
38
44
# Note the current convention is to use the -S and -B options here to specify source
39
45
# and build directories, but this is only available with CMake 3.13 and higher.
40
46
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12
41
- run : cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBUILD_UNITTESTS=yes
47
+ run : cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBUILD_UNITTESTS=yes -DEXTERNAL_GTEST=${{ matrix.external-gtest }}
42
48
43
49
- name : Build
44
50
working-directory : ${{runner.workspace}}/build
52
58
# Execute tests defined by the CMake configuration.
53
59
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
54
60
run : ctest -C $BUILD_TYPE --verbose
55
-
56
-
You can’t perform that action at this time.
0 commit comments