X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=.github%2Fworkflows%2Fcmake-build-ci.yml;h=601cf24733dca4295fce88c0cbd365099cd599dd;hb=4fb1e0004ec9410c65bc5b6e8a8d9089b6e2f01f;hp=d1d8096122cd0245868233bf0b99d208c84a19c6;hpb=d5f5c1f9dcb1da3cd89ca6b14b87af5d9630991b;p=awesomized%2Flibmemcached diff --git a/.github/workflows/cmake-build-ci.yml b/.github/workflows/cmake-build-ci.yml index d1d80961..601cf247 100644 --- a/.github/workflows/cmake-build-ci.yml +++ b/.github/workflows/cmake-build-ci.yml @@ -1,20 +1,20 @@ # 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: # defaults INSTALL_MEMCACHED: memcached - CMAKE_CONFIG_TYPE: Debug + CMAKE_BUILD_TYPE: Debug BUILD_TESTING: "ON" ENABLE_SASL: "OFF" ENABLE_HASH_HSIEH: "ON" @@ -37,7 +37,7 @@ jobs: runs-on: ${{ matrix.os_ver }} continue-on-error: ${{ matrix.cc_vnd == 'clang' }} env: - CMAKE_CONFIG_TYPE: Release + CMAKE_BUILD_TYPE: Release OS_VND: Linux OS_VER: ${{ matrix.os_ver }} CC_VND: ${{ matrix.cc_vnd }} @@ -104,8 +104,10 @@ jobs: - name: Prepare environment (for old clang on ubuntu-18.04) if: (env.OS_VER=='ubuntu-18.04') && (env.CC_VND=='clang') && (env.CC_VER=='old') run: | - echo CC=clang-6.0 >> ${GITHUB_ENV} - echo CXX=clang++-6.0 >> ${GITHUB_ENV} + echo CC=clang-7 >> ${GITHUB_ENV} + echo CXX=clang++-7 >> ${GITHUB_ENV} + echo INSTALL_CC='clang-7' >> ${GITHUB_ENV} + echo INSTALL_CXX='clang-7' >> ${GITHUB_ENV} - name: Install dependencies if: runner.os == 'Linux' run: sudo apt-get install libevent-dev libsasl2-dev ${INSTALL_MEMCACHED} ${INSTALL_CC} ${INSTALL_CXX} @@ -126,7 +128,7 @@ jobs: runs-on: ubuntu-20.04 # env: ENABLE_SANITIZERS: "address;undefined" - steps: + 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') @@ -152,9 +154,9 @@ jobs: ci-cov: runs-on: ubuntu-20.04 # env: - CFLAGS: --coverage - CXXFLAGS: --coverage - steps: + 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') @@ -184,11 +186,7 @@ jobs: 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 + ENABLE_SASL: "ON" steps: - uses: actions/checkout@v2 - uses: actions/checkout@v2 @@ -208,7 +206,13 @@ jobs: run: | cd memcached ./autogen.sh - ./configure CFLAGS="-O2 -pipe" --prefix=${MEMCACHED_PREFIX} + ./configure CFLAGS="-O2 -pipe" \ + --prefix=${MEMCACHED_PREFIX} \ + --enable-sasl \ + --enable-sasl-pwdb \ + --disable-docs \ + --disable-coverage \ + --disable-dependency-tracking make -j2 make install cd .. @@ -223,4 +227,3 @@ jobs: - name: Failed tests log if: ${{ failure() }} run: cat build/Testing/Temporary/LastTest.log -