X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=.github%2Fworkflows%2Fcmake-build-ci.yml;h=1c2d355e6495900dd708d5dfd2bf66306ae27f89;hb=bde5648bce7d87e7ac22b403db49186d3a7a15e6;hp=6a1a3ba411fddc343ea67d239d73dd4cee62ec4f;hpb=535d72acf1ce7cae403fd05189d5b0e141b4bad3;p=awesomized%2Flibmemcached diff --git a/.github/workflows/cmake-build-ci.yml b/.github/workflows/cmake-build-ci.yml index 6a1a3ba4..1c2d355e 100644 --- a/.github/workflows/cmake-build-ci.yml +++ b/.github/workflows/cmake-build-ci.yml @@ -14,11 +14,11 @@ on: env: # defaults INSTALL_MEMCACHED: memcached - CMAKE_CONFIG_TYPE: Debug + CMAKE_BUILD_TYPE: Debug BUILD_TESTING: "ON" - ENABLE_SASL: "ON" + ENABLE_SASL: "OFF" ENABLE_HASH_HSIEH: "ON" - ENABLE_DTRACE: "ON" + ENABLE_DTRACE: "OFF" VERBOSE: "ON" OS_VND: Linux # OS_VER: ubuntu-20.04 # @@ -29,17 +29,19 @@ jobs: # release builds ci-rel: strategy: + fail-fast: false matrix: - os: [ubuntu-20.04, ubuntu-18.04] - compiler_vendor: [gnu, clang] - compiler_version: [new, cur, old] - runs-on: ${{ matrix.os }} + os_ver: [ubuntu-20.04, ubuntu-18.04] + cc_vnd: [gnu, clang] + cc_ver: [new, cur, old] + 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 }} - CC_VND: ${{ matrix.compiler_vendor }} - CC_VER: ${{ matrix.compiler_version }} + OS_VER: ${{ matrix.os_ver }} + CC_VND: ${{ matrix.cc_vnd }} + CC_VER: ${{ matrix.cc_ver }} steps: - uses: actions/checkout@v2 - name: Prepare environment (for new gnu on ubuntu-20.04) @@ -102,14 +104,16 @@ 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 libsasl-dev ${INSTALL_MEMCACHED} ${INSTALL_CC} ${INSTALL_CXX} - - name: Generate build tree (${CMAKE_CONFIG_TYPE}) + 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 ${CXX} ${CXXFLAGS} + - name: Build all with ${{ env.CXX }} ${{ env.CXXFLAGS }} run: make -C build -j2 all - name: Test run: make -C build -j2 test @@ -117,7 +121,7 @@ jobs: run: make -C build -j2 install DESTDIR=. - name: Failed tests log if: ${{ failure() }} - run: cat Testing/Temporary/LastTest.log + run: cat build/Testing/Temporary/LastTest.log # sanitizer build ci-san: @@ -133,10 +137,10 @@ jobs: echo CXX=g++-9 >> ${GITHUB_ENV} - name: Install dependencies if: runner.os == 'Linux' - run: sudo apt-get install libevent-dev libsasl-dev ${INSTALL_MEMCACHED} ${INSTALL_CC} ${INSTALL_CXX} - - name: Generate build tree (${CMAKE_CONFIG_TYPE}) + 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 ${CXX} ${CXXFLAGS} + - name: Build all with ${{ env.CXX }} ${{ env.CXXFLAGS }} run: make -C build -j2 all - name: Test run: make -C build -j2 test @@ -144,7 +148,7 @@ jobs: run: make -C build -j2 install DESTDIR=. - name: Failed tests log if: ${{ failure() }} - run: cat Testing/Temporary/LastTest.log + run: cat build/Testing/Temporary/LastTest.log # coverage build ci-cov: @@ -161,10 +165,10 @@ jobs: echo CXX=g++-9 >> ${GITHUB_ENV} - name: Install dependencies if: runner.os == 'Linux' - run: sudo apt-get install libevent-dev libsasl-dev ${INSTALL_MEMCACHED} ${INSTALL_CC} ${INSTALL_CXX} - - name: Generate build tree (${CMAKE_CONFIG_TYPE}) + 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 ${CXX} ${CXXFLAGS} + - name: Build all with ${{ env.CXX }} ${{ env.CXXFLAGS }} run: make -C build -j2 all - name: Test run: make -C build -j2 test @@ -172,8 +176,10 @@ jobs: run: make -C build -j2 install DESTDIR=. - name: Failed tests log if: ${{ failure() }} - run: cat Testing/Temporary/LastTest.log + run: cat build/Testing/Temporary/LastTest.log - uses: codecov/codecov-action@v1.0.13 + with: + directory: build/src # memcached new ci-new: @@ -192,7 +198,16 @@ jobs: - 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 @@ -201,17 +216,9 @@ jobs: make -j2 make install cd .. - - 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 libsasl-dev ${INSTALL_MEMCACHED} ${INSTALL_CC} ${INSTALL_CXX} - - name: Generate build tree (${CMAKE_CONFIG_TYPE}) + - name: Generate build tree (${{ env.CMAKE_CONFIG_TYPE }}) run: cmake -S . -B build - - name: Build all with ${CXX} ${CXXFLAGS} + - name: Build all with ${{ env.CXX }} ${{ env.CXXFLAGS }} run: make -C build -j2 all - name: Test run: make -C build -j2 test @@ -219,5 +226,5 @@ jobs: run: make -C build -j2 install DESTDIR=. - name: Failed tests log if: ${{ failure() }} - run: cat Testing/Temporary/LastTest.log + run: cat build/Testing/Temporary/LastTest.log