# Generated file; do not edit!
name: cmake-build-ci
-on:
+on:
push:
- paths-ignore:
+ paths-ignore:
- "docs/**"
- branches-ignore:
+ branches-ignore:
- gh-pages
- v1.x
pull_request:
- branches:
+ branches:
- master
- v1.x
env:
CC_VER: cur #
jobs:
+
+ # new memcached
+ ci-new:
+ name: ci-dbg (ubuntu-20.04, gnu, cur, memcached-1.6)
+ runs-on: ubuntu-20.04 #
+ env:
+ INSTALL_MEMCACHED:
+ MEMCACHED_PREFIX: /tmp
+ MEMCACHED_BINARY: /tmp/bin/memcached
+ ENABLE_SASL: "ON"
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/checkout@v2
+ with:
+ repository: memcached/memcached
+ path: memcached
+ ref: 1.6.7
+ - name: Prepare environment (for cur gnu on ubuntu-20.04)
+ if: (env.OS_VER=='ubuntu-20.04') && (env.CC_VND=='gnu') && (env.CC_VER=='cur')
+ run: |
+ echo CC=gcc-9 >> ${GITHUB_ENV}
+ echo CXX=g++-9 >> ${GITHUB_ENV}
+ - name: Install dependencies
+ if: runner.os == 'Linux'
+ run: sudo apt-get install libevent-dev libsasl2-dev ${INSTALL_MEMCACHED} ${INSTALL_CC} ${INSTALL_CXX}
+ - name: Build memcached
+ run: |
+ cd memcached
+ ./autogen.sh
+ ./configure CFLAGS="-O2 -pipe" \
+ --prefix=${MEMCACHED_PREFIX} \
+ --enable-sasl \
+ --enable-sasl-pwdb \
+ --disable-docs \
+ --disable-coverage \
+ --disable-dependency-tracking
+ make -j2
+ make install
+ cd ..
+ - name: Generate build tree (${{ env.CMAKE_CONFIG_TYPE }})
+ run: cmake -S . -B build
+ - name: Build all with ${{ env.CXX }} ${{ env.CXXFLAGS }}
+ run: make -C build -j2 all
+ - name: Test
+ run: make -C build -j2 test
+ - name: Install
+ run: make -C build -j2 install DESTDIR=.
+ - name: Failed tests log
+ if: ${{ failure() }}
+ run: cat build/Testing/Temporary/LastTest.log || true
+
+ # sanitizer build
+ ci-san:
+ name: ci-dbg (ubuntu-20.04, gnu, cur, sanitizers)
+ runs-on: ubuntu-20.04 #
+ env:
+ ENABLE_SANITIZERS: "address;undefined"
+ steps:
+ - uses: actions/checkout@v2
+ - name: Prepare environment (for cur gnu on ubuntu-20.04)
+ if: (env.OS_VER=='ubuntu-20.04') && (env.CC_VND=='gnu') && (env.CC_VER=='cur')
+ run: |
+ echo CC=gcc-9 >> ${GITHUB_ENV}
+ echo CXX=g++-9 >> ${GITHUB_ENV}
+ - name: Install dependencies
+ if: runner.os == 'Linux'
+ run: sudo apt-get install libevent-dev libsasl2-dev ${INSTALL_MEMCACHED} ${INSTALL_CC} ${INSTALL_CXX}
+ - name: Generate build tree (${{ env.CMAKE_CONFIG_TYPE }})
+ run: cmake -S . -B build
+ - name: Build all with ${{ env.CXX }} ${{ env.CXXFLAGS }}
+ run: make -C build -j2 all
+ - name: Test
+ run: make -C build -j2 test
+ - name: Install
+ run: make -C build -j2 install DESTDIR=.
+ - name: Failed tests log
+ if: ${{ failure() }}
+ run: cat build/Testing/Temporary/LastTest.log || true
+
+ # coverage build
+ ci-cov:
+ name: ci-dbg (ubuntu-20.04, gnu, cur, coverage)
+ runs-on: ubuntu-20.04 #
+ env:
+ CFLAGS: -O0 --coverage
+ CXXFLAGS: -O0 --coverage
+ steps:
+ - uses: actions/checkout@v2
+ - name: Prepare environment (for cur gnu on ubuntu-20.04)
+ if: (env.OS_VER=='ubuntu-20.04') && (env.CC_VND=='gnu') && (env.CC_VER=='cur')
+ run: |
+ echo CC=gcc-9 >> ${GITHUB_ENV}
+ echo CXX=g++-9 >> ${GITHUB_ENV}
+ - name: Install dependencies
+ if: runner.os == 'Linux'
+ run: sudo apt-get install libevent-dev libsasl2-dev ${INSTALL_MEMCACHED} ${INSTALL_CC} ${INSTALL_CXX}
+ - name: Generate build tree (${{ env.CMAKE_CONFIG_TYPE }})
+ run: cmake -S . -B build
+ - name: Build all with ${{ env.CXX }} ${{ env.CXXFLAGS }}
+ run: make -C build -j2 all
+ - name: Test
+ run: make -C build -j2 test
+ - name: Install
+ run: make -C build -j2 install DESTDIR=.
+ - name: Failed tests log
+ if: ${{ failure() }}
+ run: cat build/Testing/Temporary/LastTest.log || true
+ - uses: codecov/codecov-action@v1.0.13
+
# release builds
ci-rel:
strategy:
run: make -C build -j2 install DESTDIR=.
- name: Failed tests log
if: ${{ failure() }}
- run: cat build/Testing/Temporary/LastTest.log
-
- # sanitizer build
- ci-san:
- runs-on: ubuntu-20.04 #
- env:
- ENABLE_SANITIZERS: "address;undefined"
- steps:
- - uses: actions/checkout@v2
- - name: Prepare environment (for cur gnu on ubuntu-20.04)
- if: (env.OS_VER=='ubuntu-20.04') && (env.CC_VND=='gnu') && (env.CC_VER=='cur')
- run: |
- echo CC=gcc-9 >> ${GITHUB_ENV}
- echo CXX=g++-9 >> ${GITHUB_ENV}
- - name: Install dependencies
- if: runner.os == 'Linux'
- run: sudo apt-get install libevent-dev libsasl2-dev ${INSTALL_MEMCACHED} ${INSTALL_CC} ${INSTALL_CXX}
- - name: Generate build tree (${{ env.CMAKE_CONFIG_TYPE }})
- run: cmake -S . -B build
- - name: Build all with ${{ env.CXX }} ${{ env.CXXFLAGS }}
- run: make -C build -j2 all
- - name: Test
- run: make -C build -j2 test
- - name: Install
- run: make -C build -j2 install DESTDIR=.
- - name: Failed tests log
- if: ${{ failure() }}
- run: cat build/Testing/Temporary/LastTest.log
-
- # coverage build
- ci-cov:
- runs-on: ubuntu-20.04 #
- env:
- CFLAGS: --coverage
- CXXFLAGS: --coverage
- steps:
- - uses: actions/checkout@v2
- - name: Prepare environment (for cur gnu on ubuntu-20.04)
- if: (env.OS_VER=='ubuntu-20.04') && (env.CC_VND=='gnu') && (env.CC_VER=='cur')
- run: |
- echo CC=gcc-9 >> ${GITHUB_ENV}
- echo CXX=g++-9 >> ${GITHUB_ENV}
- - name: Install dependencies
- if: runner.os == 'Linux'
- run: sudo apt-get install libevent-dev libsasl2-dev ${INSTALL_MEMCACHED} ${INSTALL_CC} ${INSTALL_CXX}
- - name: Generate build tree (${{ env.CMAKE_CONFIG_TYPE }})
- run: cmake -S . -B build
- - name: Build all with ${{ env.CXX }} ${{ env.CXXFLAGS }}
- run: make -C build -j2 all
- - name: Test
- run: make -C build -j2 test
- - name: Install
- run: make -C build -j2 install DESTDIR=.
- - name: Failed tests log
- if: ${{ failure() }}
- run: cat build/Testing/Temporary/LastTest.log
- - uses: codecov/codecov-action@v1.0.13
- with:
- directory: build/src
-
- # memcached new
- ci-new:
- runs-on: ubuntu-20.04 #
- env:
- INSTALL_MEMCACHED:
- MEMCACHED_PREFIX: /tmp
- MEMCACHED_BINARY: /tmp/bin/memcached
- enable_sasl: yes
- enable_sasl_pwdb: yes
- enable_docs: no
- enable_coverage: no
- enable_dependency_tracking: no
- steps:
- - uses: actions/checkout@v2
- - uses: actions/checkout@v2
- with:
- repository: memcached/memcached
- path: memcached
- ref: 1.6.7
- - name: Prepare environment (for cur gnu on ubuntu-20.04)
- if: (env.OS_VER=='ubuntu-20.04') && (env.CC_VND=='gnu') && (env.CC_VER=='cur')
- run: |
- echo CC=gcc-9 >> ${GITHUB_ENV}
- echo CXX=g++-9 >> ${GITHUB_ENV}
- - name: Install dependencies
- if: runner.os == 'Linux'
- run: sudo apt-get install libevent-dev libsasl2-dev ${INSTALL_MEMCACHED} ${INSTALL_CC} ${INSTALL_CXX}
- - name: Build memcached
- run: |
- cd memcached
- ./autogen.sh
- ./configure CFLAGS="-O2 -pipe" --prefix=${MEMCACHED_PREFIX}
- make -j2
- make install
- cd ..
- - name: Generate build tree (${{ env.CMAKE_CONFIG_TYPE }})
- run: cmake -S . -B build
- - name: Build all with ${{ env.CXX }} ${{ env.CXXFLAGS }}
- run: make -C build -j2 all
- - name: Test
- run: make -C build -j2 test
- - name: Install
- run: make -C build -j2 install DESTDIR=.
- - name: Failed tests log
- if: ${{ failure() }}
- run: cat build/Testing/Temporary/LastTest.log
-
+ run: cat build/Testing/Temporary/LastTest.log || true