types: [published]
push:
paths:
+ - ".github/workflows/cmake-build-ci*"
+ - "CMake*"
+ - "CPack*"
- "contrib/**"
- "include/**"
- "src/**"
- "test/**"
- - "CMake*"
- - "CPack*"
- - ".github/workflows/cmake-build-ci*"
branches-ignore:
- gh-pages
pull_request:
- name: Package
env:
PUSH_ARTIFACTS_ID: ${{ secrets.PUSH_ARTIFACTS_ID }}
- if: env.CMAKE_BUILD_TYPE == 'Release' && !(env.OS_VER == 'ubuntu-18.04' && env.CC_VND == 'gnu' && env.CC_VER == 'new ')
+ if: env.PUSH_ARTIFACTS_ID != '' && env.CMAKE_BUILD_TYPE == 'Release' && !(env.OS_VER == 'ubuntu-18.04' && env.CC_VND == 'gnu' && env.CC_VER == 'new ')
run: |
cmake --config ${{ env.CMAKE_BUILD_TYPE }} -S . -B build
cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package
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
- if: success() || failure()
- run: bash .github/notify-gitter.sh ${{ secrets.GITTER }} ${{ job.status }}
+ env:
+ GITTER: ${{ secrets.GITTER }}
+ if: (success() || failure()) && env.GITTER != ''
+ run: bash .github/notify-gitter.sh ${{ job.status }}
- uses: codecov/codecov-action@v1.0.13
# sanitizer build
- name: Package
env:
PUSH_ARTIFACTS_ID: ${{ secrets.PUSH_ARTIFACTS_ID }}
- if: env.CMAKE_BUILD_TYPE == 'Release' && !(env.OS_VER == 'ubuntu-18.04' && env.CC_VND == 'gnu' && env.CC_VER == 'new ')
+ if: env.PUSH_ARTIFACTS_ID != '' && env.CMAKE_BUILD_TYPE == 'Release' && !(env.OS_VER == 'ubuntu-18.04' && env.CC_VND == 'gnu' && env.CC_VER == 'new ')
run: |
cmake --config ${{ env.CMAKE_BUILD_TYPE }} -S . -B build
cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package
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
- if: success() || failure()
- run: bash .github/notify-gitter.sh ${{ secrets.GITTER }} ${{ job.status }}
+ env:
+ GITTER: ${{ secrets.GITTER }}
+ if: (success() || failure()) && env.GITTER != ''
+ run: bash .github/notify-gitter.sh ${{ job.status }}
# mac debug
dbg-mac:
- name: Package
env:
PUSH_ARTIFACTS_ID: ${{ secrets.PUSH_ARTIFACTS_ID }}
- if: env.CMAKE_BUILD_TYPE == 'Release' && !(env.OS_VER == 'ubuntu-18.04' && env.CC_VND == 'gnu' && env.CC_VER == 'new ')
+ if: env.PUSH_ARTIFACTS_ID != '' && env.CMAKE_BUILD_TYPE == 'Release' && !(env.OS_VER == 'ubuntu-18.04' && env.CC_VND == 'gnu' && env.CC_VER == 'new ')
run: |
cmake --config ${{ env.CMAKE_BUILD_TYPE }} -S . -B build
cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package
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
- if: success() || failure()
- run: bash .github/notify-gitter.sh ${{ secrets.GITTER }} ${{ job.status }}
+ env:
+ GITTER: ${{ secrets.GITTER }}
+ if: (success() || failure()) && env.GITTER != ''
+ run: bash .github/notify-gitter.sh ${{ job.status }}
- uses: codecov/codecov-action@v1.0.13
# mac release
- name: Package
env:
PUSH_ARTIFACTS_ID: ${{ secrets.PUSH_ARTIFACTS_ID }}
- if: env.CMAKE_BUILD_TYPE == 'Release' && !(env.OS_VER == 'ubuntu-18.04' && env.CC_VND == 'gnu' && env.CC_VER == 'new ')
+ if: env.PUSH_ARTIFACTS_ID != '' && env.CMAKE_BUILD_TYPE == 'Release' && !(env.OS_VER == 'ubuntu-18.04' && env.CC_VND == 'gnu' && env.CC_VER == 'new ')
run: |
cmake --config ${{ env.CMAKE_BUILD_TYPE }} -S . -B build
cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package
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
- if: success() || failure()
- run: bash .github/notify-gitter.sh ${{ secrets.GITTER }} ${{ job.status }}
+ env:
+ GITTER: ${{ secrets.GITTER }}
+ if: (success() || failure()) && env.GITTER != ''
+ run: bash .github/notify-gitter.sh ${{ job.status }}
# windows release builds
windows:
- name: Package
env:
PUSH_ARTIFACTS_ID: ${{ secrets.PUSH_ARTIFACTS_ID }}
- if: env.CMAKE_BUILD_TYPE == 'Release' && !(env.OS_VER == 'ubuntu-18.04' && env.CC_VND == 'gnu' && env.CC_VER == 'new ')
+ if: env.PUSH_ARTIFACTS_ID != '' && env.CMAKE_BUILD_TYPE == 'Release' && !(env.OS_VER == 'ubuntu-18.04' && env.CC_VND == 'gnu' && env.CC_VER == 'new ')
run: |
cmake --config ${{ env.CMAKE_BUILD_TYPE }} -S . -B build
cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package
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
- if: success() || failure()
- run: bash .github/notify-gitter.sh ${{ secrets.GITTER }} ${{ job.status }}
+ env:
+ GITTER: ${{ secrets.GITTER }}
+ if: (success() || failure()) && env.GITTER != ''
+ run: bash .github/notify-gitter.sh ${{ job.status }}
# linux release builds
release:
- name: Package
env:
PUSH_ARTIFACTS_ID: ${{ secrets.PUSH_ARTIFACTS_ID }}
- if: env.CMAKE_BUILD_TYPE == 'Release' && !(env.OS_VER == 'ubuntu-18.04' && env.CC_VND == 'gnu' && env.CC_VER == 'new ')
+ if: env.PUSH_ARTIFACTS_ID != '' && env.CMAKE_BUILD_TYPE == 'Release' && !(env.OS_VER == 'ubuntu-18.04' && env.CC_VND == 'gnu' && env.CC_VER == 'new ')
run: |
cmake --config ${{ env.CMAKE_BUILD_TYPE }} -S . -B build
cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package
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
- if: success() || failure()
- run: bash .github/notify-gitter.sh ${{ secrets.GITTER }} ${{ job.status }}
+ env:
+ GITTER: ${{ secrets.GITTER }}
+ if: (success() || failure()) && env.GITTER != ''
+ run: bash .github/notify-gitter.sh ${{ job.status }}