on:
push:
paths:
+ - "contrib/**"
- "include/**"
- "src/**"
- "test/**"
- "CMake*"
+ - "CPack*"
- ".github/workflows/cmake-build-ci*"
branches-ignore:
- gh-pages
env:
# defaults
INSTALL_MEMCACHED: memcached
- ENABLE_SASL: "ON"
+ ENABLE_SASL: "OFF" # ^ almost no memcached distribution package has built in sasl support
ENABLE_HASH_HSIEH: "ON"
ENABLE_DTRACE: "OFF"
OS_VND: Linux #
CXXFLAGS: "-O0 --coverage"
INSTALL_MEMCACHED: ""
MEMCACHED_PREFIX: "/tmp"
+ ENABLE_SASL: "ON"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2
- name: Install dependencies (Linux)
if: runner.os == 'Linux'
run: |
- sudo apt-get install \
+ sudo apt-get install -my \
libevent-dev \
libsasl2-dev \
libtbb-dev \
- python3-m2r \
python3-sphinx \
${INSTALL_MEMCACHED} \
${INSTALL_CC} ${INSTALL_CXX}
- name: Build all with ${{ env.CXX }} ${{ env.CXXFLAGS }}
run: cmake --build build -j2
- name: Test
- run: cmake --build build -j2 --target test
- - name: Install
- run: cmake --build build -j2 --target install -- DESTDIR=/tmp
+ if: env.BUILD_TESTING == 'ON'
+ run: |
+ cmake --build build -j2 --target test
+ cmake --build build -j2 --target install -- DESTDIR=/tmp
- name: Failed tests log
if: ${{ failure() }}
run: cat build/Testing/Temporary/LastTest.log || true
- name: Install dependencies (Linux)
if: runner.os == 'Linux'
run: |
- sudo apt-get install \
+ sudo apt-get install -my \
libevent-dev \
libsasl2-dev \
libtbb-dev \
- python3-m2r \
python3-sphinx \
${INSTALL_MEMCACHED} \
${INSTALL_CC} ${INSTALL_CXX}
- name: Build all with ${{ env.CXX }} ${{ env.CXXFLAGS }}
run: cmake --build build -j2
- name: Test
- run: cmake --build build -j2 --target test
- - name: Install
- run: cmake --build build -j2 --target install -- DESTDIR=/tmp
+ if: env.BUILD_TESTING == 'ON'
+ run: |
+ cmake --build build -j2 --target test
+ cmake --build build -j2 --target install -- DESTDIR=/tmp
- name: Failed tests log
if: ${{ failure() }}
run: cat build/Testing/Temporary/LastTest.log || true
- name: Install dependencies (Linux)
if: runner.os == 'Linux'
run: |
- sudo apt-get install \
+ sudo apt-get install -my \
libevent-dev \
libsasl2-dev \
libtbb-dev \
- python3-m2r \
python3-sphinx \
${INSTALL_MEMCACHED} \
${INSTALL_CC} ${INSTALL_CXX}
- name: Build all with ${{ env.CXX }} ${{ env.CXXFLAGS }}
run: cmake --build build -j2
- name: Test
- run: cmake --build build -j2 --target test
- - name: Install
- run: cmake --build build -j2 --target install -- DESTDIR=/tmp
+ if: env.BUILD_TESTING == 'ON'
+ run: |
+ cmake --build build -j2 --target test
+ cmake --build build -j2 --target install -- DESTDIR=/tmp
- name: Failed tests log
if: ${{ failure() }}
run: cat build/Testing/Temporary/LastTest.log || true
runs-on: macos-10.15 #
env:
CMAKE_BUILD_TYPE: "Debug"
- ENABLE_SASL: "OFF"
BUILD_TESTING: "ON"
VERBOSE: "ON"
CFLAGS: "-O0 --coverage"
- name: Install dependencies (Linux)
if: runner.os == 'Linux'
run: |
- sudo apt-get install \
+ sudo apt-get install -my \
libevent-dev \
libsasl2-dev \
libtbb-dev \
- python3-m2r \
python3-sphinx \
${INSTALL_MEMCACHED} \
${INSTALL_CC} ${INSTALL_CXX}
- name: Build all with ${{ env.CXX }} ${{ env.CXXFLAGS }}
run: cmake --build build -j2
- name: Test
- run: cmake --build build -j2 --target test
- - name: Install
- run: cmake --build build -j2 --target install -- DESTDIR=/tmp
+ if: env.BUILD_TESTING == 'ON'
+ run: |
+ cmake --build build -j2 --target test
+ cmake --build build -j2 --target install -- DESTDIR=/tmp
- name: Failed tests log
if: ${{ failure() }}
run: cat build/Testing/Temporary/LastTest.log || true
name: rel-mac (macos-10.15, clang, cur)
runs-on: macos-10.15 #
env:
- ENABLE_SASL: "OFF"
+ CMAKE_BUILD_TYPE: "Release"
BUILD_DOCS_MANGZ: "ON"
OS_VND: macOS #
OS_VER: macos-10.15 #
continue-on-error: true
steps:
- uses: actions/checkout@v2
+ with:
+ fetch-depth: 1000
- name: Install dependencies (Linux)
if: runner.os == 'Linux'
run: |
- sudo apt-get install \
+ sudo apt-get install -my \
libevent-dev \
libsasl2-dev \
libtbb-dev \
- python3-m2r \
python3-sphinx \
${INSTALL_MEMCACHED} \
${INSTALL_CC} ${INSTALL_CXX}
- name: Build all with ${{ env.CXX }} ${{ env.CXXFLAGS }}
run: cmake --build build -j2
- name: Test
- run: cmake --build build -j2 --target test
- - name: Install
- run: cmake --build build -j2 --target install -- DESTDIR=/tmp
+ if: env.BUILD_TESTING == 'ON'
+ run: |
+ cmake --build build -j2 --target test
+ cmake --build build -j2 --target install -- DESTDIR=/tmp
- name: Failed tests log
if: ${{ failure() }}
run: cat build/Testing/Temporary/LastTest.log || true
name: win-msvc (windows-2019, msvc, cur)
runs-on: windows-2019 #
env:
- ENABLE_SASL: "OFF"
+ CMAKE_BUILD_TYPE: "Release"
BISON_ROOT: "C:/msys64/usr"
FLEX_ROOT: "C:/msys64/usr"
OS_VND: Windows #
CC_VND: msvc #
CC_VER: cur #
continue-on-error: true
- defaults:
- run:
- shell: msys2 {0}
steps:
- uses: actions/checkout@v2
+ with:
+ fetch-depth: 1000
- uses: msys2/setup-msys2@v2
with:
release: false
runs-on: ${{ matrix.os_ver }}
continue-on-error: ${{ matrix.cc_vnd == 'clang' }}
env:
+ CMAKE_BUILD_TYPE: "Release"
BUILD_DOCS_MANGZ: "ON"
OS_VND: Linux
OS_VER: ${{ matrix.os_ver }}
CC_VER: ${{ matrix.cc_ver }}
steps:
- uses: actions/checkout@v2
+ with:
+ fetch-depth: 1000
- name: Prepare environment (for new gnu on ubuntu-20.04)
if: (env.OS_VER=='ubuntu-20.04') && (env.CC_VND=='gnu') && (env.CC_VER=='new')
run: |
- name: Install dependencies (Linux)
if: runner.os == 'Linux'
run: |
- sudo apt-get install \
+ sudo apt-get install -my \
libevent-dev \
libsasl2-dev \
libtbb-dev \
- python3-m2r \
python3-sphinx \
${INSTALL_MEMCACHED} \
${INSTALL_CC} ${INSTALL_CXX}
- name: Build all with ${{ env.CXX }} ${{ env.CXXFLAGS }}
run: cmake --build build -j2
- name: Test
- run: cmake --build build -j2 --target test
- - name: Install
- run: cmake --build build -j2 --target install -- DESTDIR=/tmp
+ if: env.BUILD_TESTING == 'ON'
+ run: |
+ cmake --build build -j2 --target test
+ cmake --build build -j2 --target install -- DESTDIR=/tmp
- name: Failed tests log
if: ${{ failure() }}
run: cat build/Testing/Temporary/LastTest.log || true