@@ -206,162 +206,6 @@ jobs:
206206 cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j4 --target package
207207 cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j4 --target push-artifacts
208208
209- # coverage linux
210- debug-coverage-linux :
211- name : debug coverage (ubuntu-24.04, gnu)
212- runs-on : ubuntu-24.04 #
213- env :
214- CMAKE_BUILD_TYPE : " Debug"
215- BUILD_TESTING : " ON"
216- VERBOSE : " ON"
217- CFLAGS : " -O0 --coverage"
218- CXXFLAGS : " -O0 --coverage"
219- INSTALL_MEMCACHED : " "
220- MEMCACHED_PREFIX : " /tmp"
221- ENABLE_SASL : " ON"
222- steps :
223- - uses : actions/checkout@v3
224- - uses : actions/checkout@v3
225- with :
226- repository : memcached/memcached
227- path : memcached
228- ref : 1.6.39
229- - name : Prepare environment (for cur gnu on ubuntu-24.04)
230- if : (env.OS_VER=='ubuntu-24.04') && (env.CC_VND=='gnu') && (env.CC_VER=='cur')
231- run : |
232- echo CC="gcc-13" >> ${GITHUB_ENV}
233- echo CXX="g++-13" >> ${GITHUB_ENV}
234- - name : Install dependencies (Linux)
235- if : runner.os == 'Linux'
236- run : |
237- sudo apt-get update -y
238- sudo apt-get install -my \
239- libevent-dev \
240- libsasl2-dev \
241- libtbb-dev \
242- python3-sphinx \
243- ${INSTALL_MEMCACHED} \
244- ${INSTALL_CC} ${INSTALL_CXX}
245- sudo systemctl stop memcached || true
246- - name : Build memcached
247- if : runner.os != 'Windows'
248- run : |
249- if test -d memcached
250- then
251- cd memcached
252- ./autogen.sh
253- cp configure{,.old} && sed -e 's/-Werror//g' <configure.old >configure
254- ./configure CFLAGS="-O2 -pipe -fcommon" \
255- --prefix=${MEMCACHED_PREFIX} \
256- --enable-sasl \
257- --enable-sasl-pwdb \
258- --disable-coverage \
259- --disable-dependency-tracking \
260- --disable-docs \
261- --disable-extstore \
262- --disable-option-checking \
263- ;
264- make -j4
265- make install
266- cd ..
267- echo MEMCACHED_BINARY="${MEMCACHED_PREFIX}/bin/memcached" >> ${GITHUB_ENV}
268- fi
269- - name : Generate build tree (${{ env.CMAKE_BUILD_TYPE }})
270- run : cmake -DCMAKE_BUILD_TYPE=${{ env.CMAKE_BUILD_TYPE }} -S . -B build
271- - name : Build all with ${{ env.CXX }} ${{ env.CXXFLAGS }}
272- run : cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j4
273- - name : Test
274- if : env.BUILD_TESTING == 'ON'
275- run : cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j4 --target test
276- - name : Install
277- if : env.BUILD_TESTING == 'ON'
278- run : cmake --install build --config ${{ env.CMAKE_BUILD_TYPE }} --prefix /tmp
279- - name : Failed tests log
280- if : ${{ env.BUILD_TESTING == 'ON' && failure() }}
281- run : cat build/Testing/Temporary/LastTest.log || true
282- - name : Package
283- env :
284- PUSH_ARTIFACTS_ID : ${{ secrets.PUSH_ARTIFACTS_ID }}
285- if : env.PUSH_ARTIFACTS_ID != '' && env.CMAKE_BUILD_TYPE == 'Release'
286- run : |
287- cmake -DCMAKE_BUILD_TYPE=${{ env.CMAKE_BUILD_TYPE }} -S . -B build
288- cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j4 --target package
289- cmake -DCPACK_COMPONENT_INSTALL=ON build
290- cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j4 --target package
291- cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j4 --target push-artifacts
292- - uses : codecov/codecov-action@v3
293-
294- # coverage mac
295- debug-coverage-mac :
296- name : debug coverage (macos-15, clang)
297- runs-on : macos-15 #
298- env :
299- CMAKE_BUILD_TYPE : " Debug"
300- BUILD_TESTING : " ON"
301- VERBOSE : " ON"
302- CFLAGS : " -O0 --coverage"
303- CXXFLAGS : " -O0 --coverage"
304- OS_VND : macOS #
305- OS_VER : macos-15 #
306- CC_VND : clang #
307- CC_VER : cur
308- continue-on-error : true
309- steps :
310- - uses : actions/checkout@v3
311- - name : Install dependencies (macOS)
312- if : runner.os == 'macOS'
313- run : |
314- brew install bison flex libevent pkg-config rsync sphinx-doc ${INSTALL_MEMCACHED}
315- brew services stop memcached || true
316- echo MEMCACHED_BINARY="/usr/local/bin/memcached" >> ${GITHUB_ENV}
317- - name : Build memcached
318- if : runner.os != 'Windows'
319- run : |
320- if test -d memcached
321- then
322- cd memcached
323- ./autogen.sh
324- cp configure{,.old} && sed -e 's/-Werror//g' <configure.old >configure
325- ./configure CFLAGS="-O2 -pipe -fcommon" \
326- --prefix=${MEMCACHED_PREFIX} \
327- --enable-sasl \
328- --enable-sasl-pwdb \
329- --disable-coverage \
330- --disable-dependency-tracking \
331- --disable-docs \
332- --disable-extstore \
333- --disable-option-checking \
334- ;
335- make -j4
336- make install
337- cd ..
338- echo MEMCACHED_BINARY="${MEMCACHED_PREFIX}/bin/memcached" >> ${GITHUB_ENV}
339- fi
340- - name : Generate build tree (${{ env.CMAKE_BUILD_TYPE }})
341- run : cmake -DCMAKE_BUILD_TYPE=${{ env.CMAKE_BUILD_TYPE }} -S . -B build
342- - name : Build all with ${{ env.CXX }} ${{ env.CXXFLAGS }}
343- run : cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j4
344- - name : Test
345- if : env.BUILD_TESTING == 'ON'
346- run : cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j4 --target test
347- - name : Install
348- if : env.BUILD_TESTING == 'ON'
349- run : cmake --install build --config ${{ env.CMAKE_BUILD_TYPE }} --prefix /tmp
350- - name : Failed tests log
351- if : ${{ env.BUILD_TESTING == 'ON' && failure() }}
352- run : cat build/Testing/Temporary/LastTest.log || true
353- - name : Package
354- env :
355- PUSH_ARTIFACTS_ID : ${{ secrets.PUSH_ARTIFACTS_ID }}
356- if : env.PUSH_ARTIFACTS_ID != '' && env.CMAKE_BUILD_TYPE == 'Release'
357- run : |
358- cmake -DCMAKE_BUILD_TYPE=${{ env.CMAKE_BUILD_TYPE }} -S . -B build
359- cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j4 --target package
360- cmake -DCPACK_COMPONENT_INSTALL=ON build
361- cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j4 --target package
362- cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j4 --target push-artifacts
363- - uses : codecov/codecov-action@v3
364-
365209 # mac release builds
366210 mac :
367211 name : release
0 commit comments