+function steps_package() {
+?>
+ - name: Package
+ env:
+ PUSH_ARTIFACTS_ID: ${{ secrets.PUSH_ARTIFACTS_ID }}
+ 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
+ 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
+<?php
+}
+
+function steps_notify() {
+?>
+ - 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}})"
+<?php
+}
+