3535 - name : make
3636 # Fail build if there are warnings
3737 # build with TLS just for compilation coverage
38- run : |
39- sudo apt-get install pkg-config libgtest-dev libgmock-dev
40- make -j4 all-with-unit-tests SERVER_CFLAGS='-Werror' BUILD_TLS=yes USE_FAST_FLOAT=yes USE_LIBBACKTRACE=yes
38+ run : make -j4 all-with-unit-tests SERVER_CFLAGS='-Werror' BUILD_TLS=yes USE_FAST_FLOAT=yes USE_LIBBACKTRACE=yes
4139 - name : test
4240 run : |
4341 sudo apt-get install tcl8.6 tclx
5250 if [[ ! -z "$dirty" ]]; then echo "$dirty"; exit 1; fi
5351 - name : unit tests
5452 run : |
55- ./src/unit/ valkey-unit-gtests
53+ ./src/valkey-unit-tests
5654
5755 test-ubuntu-latest-compatibility :
5856 runs-on : ubuntu-latest
6462 - {version: "8.0.6", file: "valkey-8.0.6-noble-x86_64.tar.gz"}
6563 - {version: "8.1.4", file: "valkey-8.1.4-noble-x86_64.tar.gz"}
6664 steps :
67- - name : Install gtest
68- run : |
69- sudo apt-get install pkg-config libgtest-dev libgmock-dev
7065 - name : Install libbacktrace
7166 uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
7267 with :
@@ -108,7 +103,7 @@ jobs:
108103 sudo apt-get install -y cmake libssl-dev
109104 mkdir -p build-release
110105 cd build-release
111- cmake -DCMAKE_BUILD_TYPE=Release .. -DBUILD_TLS=yes -DBUILD_UNIT_GTESTS =yes
106+ cmake -DCMAKE_BUILD_TYPE=Release .. -DBUILD_TLS=yes -DBUILD_UNIT_TESTS =yes
112107 make -j$(nproc)
113108 - name : test
114109 run : |
@@ -117,7 +112,7 @@ jobs:
117112 ./build-release/runtest --verbose --tags -slow --dump-logs --tls
118113 - name : unit tests
119114 run : |
120- ./build-release/bin/valkey-unit-gtests
115+ ./build-release/bin/valkey-unit-tests
121116
122117 test-sanitizer-address :
123118 runs-on : ubuntu-latest
@@ -133,18 +128,15 @@ jobs:
133128 uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
134129 - name : make
135130 # build with TLS module just for compilation coverage
136- run : |
137- sudo apt-get install pkg-config libgtest-dev libgmock-dev
138- make -j4 all-with-unit-tests SANITIZER=address SERVER_CFLAGS='-Werror' BUILD_TLS=module USE_LIBBACKTRACE=yes
131+ run : make -j4 all-with-unit-tests SANITIZER=address SERVER_CFLAGS='-Werror' BUILD_TLS=module USE_LIBBACKTRACE=yes
139132 - name : testprep
140133 run : sudo apt-get install tcl8.6 tclx -y
141134 - name : test
142135 run : ./runtest --verbose --tags -slow --dump-logs
143136 - name : module api test
144137 run : CFLAGS='-Werror' ./runtest-moduleapi --verbose --dump-logs
145138 - name : unit tests
146- run : |
147- ./src/unit/valkey-unit-gtests
139+ run : ./src/valkey-unit-tests
148140
149141 test-rdma :
150142 runs-on : ubuntu-latest
@@ -228,15 +220,9 @@ jobs:
228220 - run : cd libbacktrace && ./configure && make && sudo make install
229221 - name : Checkout Valkey
230222 uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
231- - name : Install build dependencies
232- run : brew install llvm googletest
233223 - name : make
234224 # Build with additional upcoming features
235- run : |
236- export PATH="/opt/homebrew/opt/llvm/bin:$PATH"
237- export CC=/opt/homebrew/opt/llvm/bin/clang
238- export CXX=/opt/homebrew/opt/llvm/bin/clang++
239- make -j3 all-with-unit-tests SERVER_CFLAGS='-Werror' USE_FAST_FLOAT=yes USE_LIBBACKTRACE=yes LIBBACKTRACE_PREFIX=/usr/local
225+ run : make -j3 all-with-unit-tests SERVER_CFLAGS='-Werror' USE_FAST_FLOAT=yes USE_LIBBACKTRACE=yes
240226
241227 build-32bit :
242228 runs-on : ubuntu-latest
@@ -254,34 +240,16 @@ jobs:
254240 cd libbacktrace && ./configure CFLAGS="-m32" --prefix=/usr/local/libbacktrace32 && make && sudo make install
255241 - name : Checkout Valkey
256242 uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
257- - name : Install gtest
258- run : |
259- sudo apt-get update
260- sudo apt-get install libgtest-dev
261- mkdir -p /tmp/gtest32
262- cd /tmp/gtest32
263- cmake -B build32 \
264- -DCMAKE_BUILD_TYPE=Release \
265- -DCMAKE_C_FLAGS="-m32" \
266- -DCMAKE_CXX_FLAGS="-m32" \
267- -DCMAKE_EXE_LINKER_FLAGS="-m32" \
268- /usr/src/googletest
269- cmake --build build32 --parallel
270- sudo cp build32/lib/*.a /usr/lib32/
271- cd $GITHUB_WORKSPACE
272243 - name : make
273244 # Fast float requires C++ 32-bit libraries to compile on 64-bit ubuntu
274245 # machine i.e. "-cross" suffixed version. Cross-compiling c++ to 32-bit
275246 # also requires multilib support for g++ compiler i.e. "-multilib"
276247 # suffixed version of g++. g++-multilib generally includes libstdc++.
277248 # *cross version as well, but it is also added explicitly just in case.
278- run : |
279- make -j4 SERVER_CFLAGS='-Werror' 32bit USE_FAST_FLOAT=yes USE_LIBBACKTRACE=yes LIBBACKTRACE_PREFIX=/usr/local/libbacktrace32 \
280- GTEST_CFLAGS="-I/usr/src/googletest/googletest/include -I/usr/src/googletest/googlemock/include" \
281- GTEST_LIBS="/usr/lib32/libgtest.a /usr/lib32/libgmock.a"
249+ run : make -j4 SERVER_CFLAGS='-Werror' 32bit USE_FAST_FLOAT=yes USE_LIBBACKTRACE=yes LIBBACKTRACE_PREFIX=/usr/local/libbacktrace32
282250 - name : unit tests
283251 run : |
284- ./src/unit/ valkey-unit-gtests
252+ ./src/valkey-unit-tests
285253
286254 build-libc-malloc :
287255 runs-on : ubuntu-latest
@@ -310,7 +278,7 @@ jobs:
310278 path : libbacktrace
311279 - name : Build libbacktrace
312280 run : |
313- dnf -y install epel-release gcc gcc-c++ make procps-ng which git cmake
281+ dnf -y install epel-release gcc gcc-c++ make procps-ng which
314282 cd libbacktrace && ./configure && make && make install
315283 - name : Checkout Valkey
316284 uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
0 commit comments