Skip to content

Commit e514501

Browse files
committed
release: pg_idkit 0.2.3
Signed-off-by: GitHub <noreply@github.com>
1 parent fca2020 commit e514501

16 files changed

+439
-286
lines changed

.github/workflows/build-and-test-gnu/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ inputs:
4949
type: string
5050
default: 16.2
5151
decription: |
52-
Postgres version (ex. '15.5, '16.2')
52+
Postgres version (ex. '15.6, '16.2')
5353
outputs: {}
5454
runs:
5555
using: "composite"

.github/workflows/build-rpm/action.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,12 @@ inputs:
2828
type: string
2929
default: 16.2
3030
decription: |
31-
Postgres version (ex. '15.5, '16.2')
31+
Postgres version (ex. '15.6, '16.2')
32+
cargo-pgrx-version:
33+
type: string
34+
default: 0.11.3
35+
decription: |
36+
cargo-pgrx version (ex. '0.11.3')
3237
user:
3338
type: string
3439
default: runner
@@ -51,7 +56,7 @@ runs:
5156
- name: Install Rust deps
5257
uses: taiki-e/install-action@v2
5358
with:
54-
tool: cargo-get,just,cargo-generate-rpm,cargo-pgrx@0.11.0
59+
tool: cargo-get,just,cargo-generate-rpm,cargo-pgrx@${{ inputs.cargo-pgrx-version }}
5560

5661
- name: Initialize cargo-pgrx
5762
shell: bash

.github/workflows/container.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runner: ubuntu-22.04
2424
container:
2525
arch: amd64
26-
pg_version: 15.5
26+
pg_version: 15.6
2727
os_version: alpine3.18
2828
- triple: x86_64-unknown-linux-musl
2929
gh:

.github/workflows/release.yaml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,35 @@
11
name: release
22

33
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: Version to release (ex. `0.1.0`)
8+
required: false
9+
type: string
10+
411
push:
512
branches:
13+
# Run on all commits to main, because GitHub somehow doesn't support only specifying tag patterns
14+
# (filtering must be done at the per-job level with an `if`)
15+
- main
616
# Run on auto-generated release PRs
7-
- prep-release-v[0-9]+\.[0-9]+\.[0-9]+
17+
- 'prep-release-v[0-9]+.[0-9]+.[0-9]+'
818
tags:
919
# Run on released tags (created by automated post-merge release-tagging), to generate the actual release
10-
- v[0-9]+\.[0-9]+\.[0-9]+
20+
- 'v[0-9]+.[0-9]+.[0-9]+'
1121

1222
jobs:
1323
build-rpm:
1424
runs-on: ubuntu-latest
25+
if: ${{ startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/tags/prep-release-v') }}
1526
strategy:
1627
matrix:
1728
config:
1829
- pgrx:
1930
pg-version: pg15
2031
pg:
21-
version: 15.5
32+
version: 15.6
2233
- pgrx:
2334
pg-version: pg16
2435
pg:
@@ -35,6 +46,7 @@ jobs:
3546

3647
build-zip-gnu:
3748
runs-on: ubuntu-latest
49+
if: ${{ startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/tags/prep-release-v') }}
3850
container:
3951
image: ghcr.io/vadosware/pg_idkit/builder-gnu:0.1.x
4052
strategy:
@@ -43,7 +55,7 @@ jobs:
4355
- pgrx:
4456
pg-version: pg15
4557
pg:
46-
version: 15.5
58+
version: 15.6
4759
- pgrx:
4860
pg-version: pg16
4961
pg:
@@ -61,6 +73,7 @@ jobs:
6173

6274
release:
6375
runs-on: ubuntu-latest
76+
if: ${{ startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/tags/prep-release-v') }}
6477
permissions:
6578
contents: write
6679
needs:
@@ -81,6 +94,7 @@ jobs:
8194
with:
8295
prerelease: ${{ startsWith(github.ref, 'refs/heads/prep-release') }}
8396
draft: ${{ startsWith(github.ref, 'refs/heads/prep-release') }}
97+
tag_name: ${{ github.ref || inputs.version }}
8498
# NOTE: while we have the CHANGELOG file, it always contains *all* changes,
8599
# so we will use the generated GitHub commits for now
86100
generate_release_notes: true

.github/workflows/tag-release.yaml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,37 @@
11
name: tag-release
22

33
on:
4+
workflow_dispatch:
45
pull_request:
5-
closed:
6+
types:
7+
- closed
8+
branches:
9+
- 'prep-release-v**'
610

711
jobs:
812
## Tag a release (if the commit looks like one)
913
tag-release:
1014
runs-on: ubuntu-latest
11-
if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.title, 'release:')
15+
if: ${{ github.event_name == 'workflow_dispatch' || github.event.pull_request.merged }}
1216
permissions:
1317
contents: write
1418
steps:
1519
# Checkout the repository
1620
- uses: actions/checkout@v3
1721
with:
22+
token: ${{ secrets.RELEASE_PR_PAT }}
1823
fetch-depth: 0
1924
ref: ${{ github.event.pull_request.head.ref }}
2025

2126
# Install deps
2227
- uses: Swatinem/rust-cache@v2
23-
- name: Install cargo-release
24-
uses: taiki-e/install-action@v1
25-
with:
26-
tool: just,cargo-get
2728

28-
- name: Push new tag
29+
- uses: cargo-bins/cargo-binstall@main
30+
- name: install cargo deps
31+
run: |
32+
cargo binstall just cargo-get
33+
34+
- name: Create and push new tag
2935
run: |
3036
git tag v$(just print-version);
31-
git push --follow-tags;
37+
git push https://${{ secrets.RELEASE_PR_PAT }}@github.com/vadosware/pg_idkit.git --tags;

CHANGELOG

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,26 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4+
## [0.2.3] - 2024-03-06
5+
6+
### Bug Fixes
7+
8+
- Release tagging upon merge
9+
- Use --locked for cargo install
10+
- Use zsh for better cross-platform support
11+
- More zsh usage
12+
- Use builder-gnu image from CI
13+
- Cross platform shell usage by platform
14+
15+
### Features
16+
17+
- Require superuser in pg_idkit.control ("Ability to install the extension for non-root users")
18+
19+
### Miscellaneous Tasks
20+
21+
- Update Rust to 1.76.0
22+
- Update postgres 16 to v16.2
23+
424
## [0.2.2] - 2024-01-30
525

626
### Bug Fixes

0 commit comments

Comments
 (0)