X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=.github%2Fworkflows%2Fcmake-build-ci.yml;h=8731ef0089be58258c85fcfb1afe584f374b8950;hb=7b2f2e654da6fc69e980db007f2ac1d28e675053;hp=0505ff5b737c173d0443a0b54080be2ff147f980;hpb=58d5871e9d950c79f959048bb1b8316afcc298e1;p=awesomized%2Flibmemcached diff --git a/.github/workflows/cmake-build-ci.yml b/.github/workflows/cmake-build-ci.yml index 0505ff5b..8731ef00 100644 --- a/.github/workflows/cmake-build-ci.yml +++ b/.github/workflows/cmake-build-ci.yml @@ -72,6 +72,7 @@ jobs: brew services stop memcached || true echo MEMCACHED_BINARY="/usr/local/bin/memcached" >> ${GITHUB_ENV} - name: Build memcached + if: runner.os != 'Windows' run: | if test -d memcached then @@ -98,24 +99,25 @@ jobs: run: cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 - name: Test if: env.BUILD_TESTING == 'ON' - run: | - cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target test - cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target install -- DESTDIR=/tmp + run: cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target test + - name: Install + if: env.BUILD_TESTING == 'ON' + run: cmake --install build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --prefix /tmp - name: Failed tests log - if: ${{ failure() }} + if: ${{ env.BUILD_TESTING == 'ON' && failure() }} run: cat build/Testing/Temporary/LastTest.log || true - name: Package env: PUSH_ARTIFACTS_ID: ${{ secrets.PUSH_ARTIFACTS_ID }} - if: env.CC_VER=='cur' && env.CMAKE_BUILD_TYPE=='Release' + if: env.CC_VER == 'cur' && env.CMAKE_BUILD_TYPE == 'Release' run: | cmake --config ${{ env.CMAKE_BUILD_TYPE }} -S . -B build - cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package -- VERBOSE= + cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package cmake -DCPACK_COMPONENT_INSTALL=ON build - cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package -- VERBOSE= - cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target push-artifacts -- VERBOSE= + cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package + cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target push-artifacts - name: Notify Gitter (success) - if: ${{ success() && runner.os!='Windows'}} + if: ${{ success() && runner.os != 'Windows'}} run: | REF=$(basename ${GITHUB_REF}) curl -sS "${{ secrets.GITTER }}" \ @@ -164,6 +166,7 @@ jobs: brew services stop memcached || true echo MEMCACHED_BINARY="/usr/local/bin/memcached" >> ${GITHUB_ENV} - name: Build memcached + if: runner.os != 'Windows' run: | if test -d memcached then @@ -190,24 +193,25 @@ jobs: run: cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 - name: Test if: env.BUILD_TESTING == 'ON' - run: | - cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target test - cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target install -- DESTDIR=/tmp + run: cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target test + - name: Install + if: env.BUILD_TESTING == 'ON' + run: cmake --install build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --prefix /tmp - name: Failed tests log - if: ${{ failure() }} + if: ${{ env.BUILD_TESTING == 'ON' && failure() }} run: cat build/Testing/Temporary/LastTest.log || true - name: Package env: PUSH_ARTIFACTS_ID: ${{ secrets.PUSH_ARTIFACTS_ID }} - if: env.CC_VER=='cur' && env.CMAKE_BUILD_TYPE=='Release' + if: env.CC_VER == 'cur' && env.CMAKE_BUILD_TYPE == 'Release' run: | cmake --config ${{ env.CMAKE_BUILD_TYPE }} -S . -B build - cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package -- VERBOSE= + cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package cmake -DCPACK_COMPONENT_INSTALL=ON build - cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package -- VERBOSE= - cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target push-artifacts -- VERBOSE= + cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package + cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target push-artifacts - name: Notify Gitter (success) - if: ${{ success() && runner.os!='Windows'}} + if: ${{ success() && runner.os != 'Windows'}} run: | REF=$(basename ${GITHUB_REF}) curl -sS "${{ secrets.GITTER }}" \ @@ -255,6 +259,7 @@ jobs: brew services stop memcached || true echo MEMCACHED_BINARY="/usr/local/bin/memcached" >> ${GITHUB_ENV} - name: Build memcached + if: runner.os != 'Windows' run: | if test -d memcached then @@ -281,24 +286,25 @@ jobs: run: cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 - name: Test if: env.BUILD_TESTING == 'ON' - run: | - cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target test - cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target install -- DESTDIR=/tmp + run: cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target test + - name: Install + if: env.BUILD_TESTING == 'ON' + run: cmake --install build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --prefix /tmp - name: Failed tests log - if: ${{ failure() }} + if: ${{ env.BUILD_TESTING == 'ON' && failure() }} run: cat build/Testing/Temporary/LastTest.log || true - name: Package env: PUSH_ARTIFACTS_ID: ${{ secrets.PUSH_ARTIFACTS_ID }} - if: env.CC_VER=='cur' && env.CMAKE_BUILD_TYPE=='Release' + if: env.CC_VER == 'cur' && env.CMAKE_BUILD_TYPE == 'Release' run: | cmake --config ${{ env.CMAKE_BUILD_TYPE }} -S . -B build - cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package -- VERBOSE= + cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package cmake -DCPACK_COMPONENT_INSTALL=ON build - cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package -- VERBOSE= - cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target push-artifacts -- VERBOSE= + cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package + cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target push-artifacts - name: Notify Gitter (success) - if: ${{ success() && runner.os!='Windows'}} + if: ${{ success() && runner.os != 'Windows'}} run: | REF=$(basename ${GITHUB_REF}) curl -sS "${{ secrets.GITTER }}" \ @@ -348,6 +354,7 @@ jobs: brew services stop memcached || true echo MEMCACHED_BINARY="/usr/local/bin/memcached" >> ${GITHUB_ENV} - name: Build memcached + if: runner.os != 'Windows' run: | if test -d memcached then @@ -374,24 +381,25 @@ jobs: run: cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 - name: Test if: env.BUILD_TESTING == 'ON' - run: | - cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target test - cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target install -- DESTDIR=/tmp + run: cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target test + - name: Install + if: env.BUILD_TESTING == 'ON' + run: cmake --install build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --prefix /tmp - name: Failed tests log - if: ${{ failure() }} + if: ${{ env.BUILD_TESTING == 'ON' && failure() }} run: cat build/Testing/Temporary/LastTest.log || true - name: Package env: PUSH_ARTIFACTS_ID: ${{ secrets.PUSH_ARTIFACTS_ID }} - if: env.CC_VER=='cur' && env.CMAKE_BUILD_TYPE=='Release' + if: env.CC_VER == 'cur' && env.CMAKE_BUILD_TYPE == 'Release' run: | cmake --config ${{ env.CMAKE_BUILD_TYPE }} -S . -B build - cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package -- VERBOSE= + cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package cmake -DCPACK_COMPONENT_INSTALL=ON build - cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package -- VERBOSE= - cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target push-artifacts -- VERBOSE= + cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package + cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target push-artifacts - name: Notify Gitter (success) - if: ${{ success() && runner.os!='Windows'}} + if: ${{ success() && runner.os != 'Windows'}} run: | REF=$(basename ${GITHUB_REF}) curl -sS "${{ secrets.GITTER }}" \ @@ -440,6 +448,7 @@ jobs: brew services stop memcached || true echo MEMCACHED_BINARY="/usr/local/bin/memcached" >> ${GITHUB_ENV} - name: Build memcached + if: runner.os != 'Windows' run: | if test -d memcached then @@ -466,24 +475,25 @@ jobs: run: cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 - name: Test if: env.BUILD_TESTING == 'ON' - run: | - cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target test - cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target install -- DESTDIR=/tmp + run: cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target test + - name: Install + if: env.BUILD_TESTING == 'ON' + run: cmake --install build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --prefix /tmp - name: Failed tests log - if: ${{ failure() }} + if: ${{ env.BUILD_TESTING == 'ON' && failure() }} run: cat build/Testing/Temporary/LastTest.log || true - name: Package env: PUSH_ARTIFACTS_ID: ${{ secrets.PUSH_ARTIFACTS_ID }} - if: env.CC_VER=='cur' && env.CMAKE_BUILD_TYPE=='Release' + if: env.CC_VER == 'cur' && env.CMAKE_BUILD_TYPE == 'Release' run: | cmake --config ${{ env.CMAKE_BUILD_TYPE }} -S . -B build - cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package -- VERBOSE= + cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package cmake -DCPACK_COMPONENT_INSTALL=ON build - cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package -- VERBOSE= - cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target push-artifacts -- VERBOSE= + cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package + cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target push-artifacts - name: Notify Gitter (success) - if: ${{ success() && runner.os!='Windows'}} + if: ${{ success() && runner.os != 'Windows'}} run: | REF=$(basename ${GITHUB_REF}) curl -sS "${{ secrets.GITTER }}" \ @@ -539,6 +549,7 @@ jobs: brew services stop memcached || true echo MEMCACHED_BINARY="/usr/local/bin/memcached" >> ${GITHUB_ENV} - name: Build memcached + if: runner.os != 'Windows' run: | if test -d memcached then @@ -565,24 +576,25 @@ jobs: run: cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 - name: Test if: env.BUILD_TESTING == 'ON' - run: | - cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target test - cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target install -- DESTDIR=/tmp + run: cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target test + - name: Install + if: env.BUILD_TESTING == 'ON' + run: cmake --install build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --prefix /tmp - name: Failed tests log - if: ${{ failure() }} + if: ${{ env.BUILD_TESTING == 'ON' && failure() }} run: cat build/Testing/Temporary/LastTest.log || true - name: Package env: PUSH_ARTIFACTS_ID: ${{ secrets.PUSH_ARTIFACTS_ID }} - if: env.CC_VER=='cur' && env.CMAKE_BUILD_TYPE=='Release' + if: env.CC_VER == 'cur' && env.CMAKE_BUILD_TYPE == 'Release' run: | cmake --config ${{ env.CMAKE_BUILD_TYPE }} -S . -B build - cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package -- VERBOSE= + cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package cmake -DCPACK_COMPONENT_INSTALL=ON build - cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package -- VERBOSE= - cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target push-artifacts -- VERBOSE= + cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package + cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target push-artifacts - name: Notify Gitter (success) - if: ${{ success() && runner.os!='Windows'}} + if: ${{ success() && runner.os != 'Windows'}} run: | REF=$(basename ${GITHUB_REF}) curl -sS "${{ secrets.GITTER }}" \ @@ -703,6 +715,7 @@ jobs: brew services stop memcached || true echo MEMCACHED_BINARY="/usr/local/bin/memcached" >> ${GITHUB_ENV} - name: Build memcached + if: runner.os != 'Windows' run: | if test -d memcached then @@ -729,24 +742,25 @@ jobs: run: cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 - name: Test if: env.BUILD_TESTING == 'ON' - run: | - cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target test - cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target install -- DESTDIR=/tmp + run: cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target test + - name: Install + if: env.BUILD_TESTING == 'ON' + run: cmake --install build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --prefix /tmp - name: Failed tests log - if: ${{ failure() }} + if: ${{ env.BUILD_TESTING == 'ON' && failure() }} run: cat build/Testing/Temporary/LastTest.log || true - name: Package env: PUSH_ARTIFACTS_ID: ${{ secrets.PUSH_ARTIFACTS_ID }} - if: env.CC_VER=='cur' && env.CMAKE_BUILD_TYPE=='Release' + if: env.CC_VER == 'cur' && env.CMAKE_BUILD_TYPE == 'Release' run: | cmake --config ${{ env.CMAKE_BUILD_TYPE }} -S . -B build - cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package -- VERBOSE= + cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package cmake -DCPACK_COMPONENT_INSTALL=ON build - cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package -- VERBOSE= - cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target push-artifacts -- VERBOSE= + cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package + cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target push-artifacts - name: Notify Gitter (success) - if: ${{ success() && runner.os!='Windows'}} + if: ${{ success() && runner.os != 'Windows'}} run: | REF=$(basename ${GITHUB_REF}) curl -sS "${{ secrets.GITTER }}" \