forked from postgres/postgres
-
Notifications
You must be signed in to change notification settings - Fork 16
62 lines (59 loc) · 1.83 KB
/
matirx.yml
File metadata and controls
62 lines (59 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Build and Test
on:
pull_request:
push:
branches:
- TDE_REL_17_STABLE
workflow_dispatch:
jobs:
main:
name: Main matrix
strategy:
matrix:
os: [ubuntu-24.04]
compiler: [gcc, clang]
build_type: [debugoptimized]
build_script: [make, meson]
uses: ./.github/workflows/build-and-test.yml
with:
os: ${{ matrix.os }}
compiler: ${{ matrix.compiler }}
build_type: ${{ matrix.build_type }}
build_script: ${{ matrix.build_script }}
secrets: inherit
arm:
name: ARM matrix
if: github.event_name != 'pull_request'
strategy:
matrix:
os: [ubuntu-24.04-arm]
compiler: [gcc, clang]
build_type: [debugoptimized]
build_script: [make, meson]
uses: ./.github/workflows/build-and-test.yml
with:
os: ${{ matrix.os }}
compiler: ${{ matrix.compiler }}
build_type: ${{ matrix.build_type }}
build_script: ${{ matrix.build_script }}
secrets: inherit
slack-notification:
if: ${{ failure() }} && github.event_name == 'push'
needs: [ main, arm ]
name: Slack Notification
runs-on: ubuntu-24.04
steps:
- name: Notify
uses: slackapi/slack-github-action@v2.1.0
with:
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
webhook-type: incoming-webhook
payload: |
blocks:
- type: "section"
text:
type: "mrkdwn"
text: "Workflow *${{ github.workflow }}* failed on branch *${{ github.head_ref }}*\n
Commit: <${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}|${{ github.sha }}>\n
\n
<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View logs>"