sudo apt-get install \
libevent-dev \
libsasl2-dev \
+ libtbb-dev \
${INSTALL_MEMCACHED} \
${INSTALL_CC} ${INSTALL_CXX}
sudo systemctl stop memcached || true
<?php
}
+function steps_notify() {
+?>
+ - name: Notify Gitter (success)
+ if: ${{ success() }}
+ run: |
+ REF=$(basename ${GITHUB_REF})
+ curl -sS "${{ secrets.GITTER }}" \
+ --data-urlencode "level=info" \
+ --data-urlencode "message=Github [${GITHUB_REPOSITORY}](https://github.com/${GITHUB_REPOSITORY}/commits/${REF}) (${REF}) [success](https://github.com/m6w6/libmemcached/actions/runs/${GITHUB_RUN_ID}) (${ImageOS}/${CC:-${CC_VND}-${CC_VER}})"
+ - name: Notify Gitter (failure)
+ if: ${{ failure() }}
+ run: |
+ REF=$(basename ${GITHUB_REF})
+ curl -sS "${{ secrets.GITTER }}" \
+ --data-urlencode "level=error" \
+ --data-urlencode "message=Github [${GITHUB_REPOSITORY}](https://github.com/${GITHUB_REPOSITORY}/commits/${REF}) (${REF}) [failure](https://github.com/m6w6/libmemcached/actions/runs/${GITHUB_RUN_ID}) (${ImageOS}/${CC:-${CC_VND}-${CC_VER}})"
+<?php
+}
+
function steps($splat_map = null) {
steps_setenv($splat_map);
steps_getdeps();
steps_build();
+ steps_notify();
}
function defaults() {
name: cmake-build-ci
on:
push:
- paths-ignore:
- - "docs/**"
- - ".travis.yml"
- - ".cirrus.yml"
- - ".github/workflows/docs*"
+ paths:
+ - "include/**"
+ - "src/**"
+ - "test/**"
+ - "CMake*"
+ - ".github/workflows/cmake-build-ci*"
branches-ignore:
- gh-pages
pull_request:
name: dbg-mac (<?=DEF["macOS"]?>, <?=DEF[DEF["macOS"]]?>, <?=DEF[DEF[DEF["macOS"]]]["ver"]?>)
runs-on: <?=DEF["macOS"]?> #
env:
- CFLAGS: -O0 --coverage
+ CFLAGS: -O0 --coverage
CXXFLAGS: -O0 --coverage
+ OS_VND: macOS
+ OS_VER: <?=DEF["macOS"]?> #
+ CC_VND: <?=DEF[DEF["macOS"]]?> #
+ CC_VER: <?=DEF[DEF[DEF["macOS"]]]["ver"]?> #
continue-on-error: true
steps:
- uses: actions/checkout@v2