cmake -DCPACK_COMPONENT_INSTALL=ON build
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'}}
- 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() && runner.os != 'Windows'}}
- 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}})"
+ - name: Notify Gitter
+ run: bash .github/notify-gitter.sh ${{ secrets.GITTER }} ${{ job.status }}
- uses: codecov/codecov-action@v1.0.13
# sanitizer build
cmake -DCPACK_COMPONENT_INSTALL=ON build
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'}}
- 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() && runner.os != 'Windows'}}
- 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}})"
+ - name: Notify Gitter
+ run: bash .github/notify-gitter.sh ${{ secrets.GITTER }} ${{ job.status }}
# mac debug
dbg-mac:
cmake -DCPACK_COMPONENT_INSTALL=ON build
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'}}
- 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() && runner.os != 'Windows'}}
- 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}})"
+ - name: Notify Gitter
+ run: bash .github/notify-gitter.sh ${{ secrets.GITTER }} ${{ job.status }}
- uses: codecov/codecov-action@v1.0.13
# mac release
- uses: actions/checkout@v2
with:
fetch-depth: 0
- - 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')
+ - name: Install dependencies (macOS)
+ if: runner.os == 'macOS'
run: |
- echo CC="gcc-9" >> ${GITHUB_ENV}
- echo CXX="g++-9" >> ${GITHUB_ENV}
- - name: Install dependencies ()
- if: runner.os == ''
+ brew install bison flex sphinx-doc ${INSTALL_MEMCACHED}
+ brew services stop memcached || true
+ echo MEMCACHED_BINARY="/usr/local/bin/memcached" >> ${GITHUB_ENV}
- name: Build memcached
if: runner.os != 'Windows'
run: |
cmake -DCPACK_COMPONENT_INSTALL=ON build
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'}}
- 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() && runner.os != 'Windows'}}
- 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}})"
+ - name: Notify Gitter
+ run: bash .github/notify-gitter.sh ${{ secrets.GITTER }} ${{ job.status }}
# windows release builds
windows:
- name: Prepare environment (MinGW)
if: env.CC_VND == 'mingw'
run: |
- echo "CMAKE_GENERATOR=\"MinGW Makefiles\"" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
+ echo 'CMAKE_GENERATOR="MinGW Makefiles"' | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
- name: Install dependencies (Windows)
if: runner.os == 'Windows'
uses: msys2/setup-msys2@v2
cmake -DCPACK_COMPONENT_INSTALL=ON build
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
+ run: bash .github/notify-gitter.sh ${{ secrets.GITTER }} ${{ job.status }}
# linux release builds
release:
cmake -DCPACK_COMPONENT_INSTALL=ON build
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'}}
- 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() && runner.os != 'Windows'}}
- 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}})"
+ - name: Notify Gitter
+ run: bash .github/notify-gitter.sh ${{ secrets.GITTER }} ${{ job.status }}