Skip to content

PG-1486 Add ARM64 builds in CI and add Slack notifications #401

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: TDE_REL_17_STABLE
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: PSP-Reusable
name: Reusable build and test
on:
workflow_call:
inputs:
Expand All @@ -21,7 +21,7 @@ env:

jobs:
build:
name: Build PSP
name: Build
runs-on: ${{ inputs.os }}
steps:
- name: Clone repository
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
retention-days: 1

test:
name: Test PSP
name: Test
runs-on: ${{ inputs.os }}
needs: build

Expand Down Expand Up @@ -93,8 +93,8 @@ jobs:
src/src/test/*/tmp_check
retention-days: 3

test_tde:
name: Test PSP with TDE
test-default-tde:
name: Test with TDE as default access method
runs-on: ${{ inputs.os }}
if: inputs.build_script == 'make'
needs: build
Expand Down
62 changes: 62 additions & 0 deletions .github/workflows/matirx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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-22.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-22.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/[email protected]
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>"
7 changes: 1 addition & 6 deletions .github/workflows/pgindent.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
name: PgIndent
name: Format
on:
pull_request:
workflow_dispatch:

defaults:
run:
working-directory: ./src

jobs:
check:
name: Check
Expand All @@ -15,7 +11,6 @@ jobs:
- name: Clone repository
uses: actions/checkout@v4
with:
path: 'src'
submodules: recursive

- name: Install dependencies
Expand Down
24 changes: 0 additions & 24 deletions .github/workflows/psp-matrix.yml

This file was deleted.