<?=PRE?> run: make -C build -j2 install DESTDIR=.
<?=PRE?> - name: Failed tests log
<?=PRE?> if: ${{ failure() }}
-<?=PRE?> run: cat build/Testing/Temporary/LastTest.log
+<?=PRE?> run: cat build/Testing/Temporary/LastTest.log || true
<?php
}
?>
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: <?=DEF[DEF[DEF[DEF["os"]]]]["ver"]?> #
jobs:
- # release builds
- ci-rel:
- strategy:
- fail-fast: false
- matrix:
- 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_BUILD_TYPE: Release
- OS_VND: Linux
- OS_VER: ${{ matrix.os_ver }}
- CC_VND: ${{ matrix.cc_vnd }}
- CC_VER: ${{ matrix.cc_ver }}
- steps:
- - uses: actions/checkout@v2
-<?php steps(true); ?>
-
- # sanitizer build
- ci-san:
- runs-on: <?=DEF[DEF["os"]]?> #
- env:
- ENABLE_SANITIZERS: "address;undefined"
- steps:
- - uses: actions/checkout@v2
-<?php steps(); ?>
- # coverage build
- ci-cov:
- runs-on: <?=DEF[DEF["os"]]?> #
- env:
- CFLAGS: --coverage
- CXXFLAGS: --coverage
- steps:
- - uses: actions/checkout@v2
-<?php steps(); ?>
- - uses: codecov/codecov-action@v1.0.13
-
- # memcached new
+ # new memcached
ci-new:
+ name: ci-dbg (<?=DEF[DEF["os"]]?> ${{ env.CC_VND }} ${{ env.CC_VER }} memcached-1.6)
runs-on: <?=DEF[DEF["os"]]?> #
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
+ ENABLE_SASL: "ON"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2
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 ..
<?php steps_build(); ?>
+ # sanitizer build
+ ci-san:
+ name: ci-dbg (<?=DEF[DEF["os"]]?> ${{ env.CC_VND }} ${{ env.CC_VER }} sanitizers)
+ runs-on: <?=DEF[DEF["os"]]?> #
+ env:
+ ENABLE_SANITIZERS: "address;undefined"
+ steps:
+ - uses: actions/checkout@v2
+<?php steps(); ?>
+
+ # coverage build
+ ci-cov:
+ name: ci-dbg (<?=DEF[DEF["os"]]?> ${{ env.CC_VND }} ${{ env.CC_VER }} coverage)
+ runs-on: <?=DEF[DEF["os"]]?> #
+ env:
+ CFLAGS: -O0 --coverage
+ CXXFLAGS: -O0 --coverage
+ steps:
+ - uses: actions/checkout@v2
+<?php steps(); ?>
+ - uses: codecov/codecov-action@v1.0.13
+
+ # release builds
+ ci-rel:
+ strategy:
+ fail-fast: false
+ matrix:
+ 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_BUILD_TYPE: Release
+ OS_VND: Linux
+ OS_VER: ${{ matrix.os_ver }}
+ CC_VND: ${{ matrix.cc_vnd }}
+ CC_VER: ${{ matrix.cc_ver }}
+ steps:
+ - uses: actions/checkout@v2
+<?php steps(true); ?>