@@ -88,15 +88,17 @@ jobs:
8888 execute-integration-tests : true
8989 secrets : inherit
9090 windows-bazel :
91+ # Disabled
92+ if : false
9193 # Build the full matrix only on push events to the default branch, or
9294 # when PR gets the has a `gha:full-build` label, or when it had the
9395 # label already and it gets a new commit.
94- if : |-
95- ${{
96- github.event_name == 'schedule' ||
97- github.event_name == 'push' ||
98- contains(github.event.pull_request.labels.*.name, 'gha:full-build')
99- }}
96+ # if: |-
97+ # ${{
98+ # github.event_name == 'schedule' ||
99+ # github.event_name == 'push' ||
100+ # contains(github.event.pull_request.labels.*.name, 'gha:full-build')
101+ # }}
100102 name : Windows-Bazel
101103 needs : [pre-flight]
102104 uses : ./.github/workflows/windows-bazel.yml
@@ -127,8 +129,6 @@ jobs:
127129 execute-integration-tests : true
128130 secrets : inherit
129131 windows-cmake :
130- # Disabled
131- if : false
132132 name : Windows-CMake
133133 needs : [pre-flight]
134134 uses : ./.github/workflows/windows-cmake.yml
@@ -147,39 +147,3 @@ jobs:
147147 vcpkg-cache-mode : ' readwrite'
148148 execute-integration-tests : true
149149 secrets : inherit
150- notify :
151- name : Notify-Google-Chat
152- # Wait until all the other jobs have completed.
153- needs :
154- # macos-bazel is disabled
155- # macos-cmake is disabled
156- - windows-bazel
157- # windows-cmake is disabled is disabled
158- # Run even if the other jobs failed or were skipped.
159- if : always()
160- runs-on : ubuntu-latest
161- steps :
162- - name : Notify Google Chat
163- shell : bash
164- run : |
165- event_name="${{ github.event_name }}"
166- case "${event_name}" in
167- schedule)
168- ;;
169- push)
170- ;;
171- *)
172- exit 0
173- ;;
174- esac
175- failure="${{ contains(needs.*.result, 'failure') }}"
176- cancelled="${{ contains(needs.*.result, 'cancelled') }}"
177- status=""
178- # Report whether any of the jobs failed or were cancelled.
179- if [[ "${cancelled}" == "true" ]]; then status="cancelled"; fi
180- if [[ "${failure}" == "true" ]]; then status="failure"; fi
181- # Exit early if there is nothing interesting to report.
182- if [[ -z "${status}" ]]; then exit 0; fi
183- printf '{"text": "GHA Build %s %s/%s/actions/runs/%s"}' \
184- "${status}" "${{ github.server_url }}" "${{ github.repository }}" "${{ github.run_id }}" |
185- curl -fsX POST -o /dev/null -d@- -H "Content-Type: application/json; charset=UTF-8" '${{ secrets.CLOUD_CPP_BUILD_ALERTS_WEBHOOK }}'
0 commit comments