|
|
|
@ -5,8 +5,13 @@ on: |
|
|
|
|
push: |
|
|
|
|
branches: [main] |
|
|
|
|
|
|
|
|
|
permissions: |
|
|
|
|
contents: read |
|
|
|
|
|
|
|
|
|
jobs: |
|
|
|
|
build: |
|
|
|
|
permissions: |
|
|
|
|
contents: write # for ncipollo/release-action to create a release |
|
|
|
|
name: pg-pgdg-package-pgxs-build |
|
|
|
|
runs-on: ubuntu-24.04 |
|
|
|
|
strategy: |
|
|
|
@ -48,7 +53,7 @@ jobs: |
|
|
|
|
sudo apt -y install postgresql-$POSTGRESQL_VERSION postgresql-server-dev-$POSTGRESQL_VERSION |
|
|
|
|
|
|
|
|
|
- name: Clone pg_tde repository |
|
|
|
|
uses: actions/checkout@master |
|
|
|
|
uses: actions/checkout@61b9e3751b92087fd0b06925ba6dd6314e06f089 # master |
|
|
|
|
with: |
|
|
|
|
path: 'src/pg_tde' |
|
|
|
|
|
|
|
|
@ -87,7 +92,7 @@ jobs: |
|
|
|
|
working-directory: src/pg_tde |
|
|
|
|
|
|
|
|
|
- name: Report on test fail |
|
|
|
|
uses: actions/upload-artifact@v4 |
|
|
|
|
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 |
|
|
|
|
if: ${{ failure() }} |
|
|
|
|
with: |
|
|
|
|
name: Regressions diff and postgresql log |
|
|
|
@ -114,7 +119,7 @@ jobs: |
|
|
|
|
- name: Upload tgz |
|
|
|
|
env: |
|
|
|
|
POSTGRESQL_VERSION: ${{ matrix.postgresql-version }} |
|
|
|
|
uses: actions/upload-artifact@v4 |
|
|
|
|
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 |
|
|
|
|
with: |
|
|
|
|
name: pg_tde_pgdg$POSTGRESQL_VERSION_binary |
|
|
|
|
path: pgtde-pgdg$POSTGRESQL_VERSION |
|
|
|
@ -142,7 +147,7 @@ jobs: |
|
|
|
|
- name: Upload deb |
|
|
|
|
env: |
|
|
|
|
POSTGRESQL_VERSION: ${{ matrix.postgresql-version }} |
|
|
|
|
uses: actions/upload-artifact@v4 |
|
|
|
|
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 |
|
|
|
|
with: |
|
|
|
|
name: pg_tde_deb |
|
|
|
|
path: pgtde-pgdg$POSTGRESQL_VERSION.deb |
|
|
|
@ -154,7 +159,7 @@ jobs: |
|
|
|
|
cd pgtde-pgdg$POSTGRESQL_VERSION && sudo tar -czvf ../pgtde-pgdg$POSTGRESQL_VERSION.tar.gz . |
|
|
|
|
|
|
|
|
|
- name: Publish release |
|
|
|
|
uses: ncipollo/release-action@v1 |
|
|
|
|
uses: ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5 # v1.14.0 |
|
|
|
|
# Only try and deploy on merged code |
|
|
|
|
if: "github.repository == 'percona/pg_tde' && github.ref_name == 'main' && (github.event_name == 'push' || github.event_name == 'schedule')" |
|
|
|
|
with: |
|
|
|
|