Skip to content

Commit

Permalink
release: pg_idkit 0.2.3
Browse files Browse the repository at this point in the history
Signed-off-by: GitHub <[email protected]>
  • Loading branch information
t3hmrman committed Mar 7, 2024
1 parent fca2020 commit f15c400
Show file tree
Hide file tree
Showing 16 changed files with 433 additions and 282 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test-gnu/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ inputs:
type: string
default: 16.2
decription: |
Postgres version (ex. '15.5, '16.2')
Postgres version (ex. '15.6, '16.2')
outputs: {}
runs:
using: "composite"
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/build-rpm/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ inputs:
type: string
default: 16.2
decription: |
Postgres version (ex. '15.5, '16.2')
Postgres version (ex. '15.6, '16.2')
cargo-pgrx-version:
type: string
default: 0.11.3
decription: |
cargo-pgrx version (ex. '0.11.3')
user:
type: string
default: runner
Expand All @@ -51,7 +56,7 @@ runs:
- name: Install Rust deps
uses: taiki-e/install-action@v2
with:
tool: cargo-get,just,cargo-generate-rpm,cargo-pgrx@0.11.0
tool: cargo-get,just,cargo-generate-rpm,cargo-pgrx@${{ inputs.cargo-pgrx-version }}

- name: Initialize cargo-pgrx
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
runner: ubuntu-22.04
container:
arch: amd64
pg_version: 15.5
pg_version: 15.6
os_version: alpine3.18
- triple: x86_64-unknown-linux-musl
gh:
Expand Down
22 changes: 18 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,35 @@
name: release

on:
workflow_dispatch:
inputs:
version:
description: Version to release (ex. `0.1.0`)
required: false
type: string

push:
branches:
# Run on all commits to main, because GitHub somehow doesn't support only specifying tag patterns
# (filtering must be done at the per-job level with an `if`)
- main
# Run on auto-generated release PRs
- prep-release-v[0-9]+\.[0-9]+\.[0-9]+
- 'prep-release-v[0-9]+.[0-9]+.[0-9]+'
tags:
# Run on released tags (created by automated post-merge release-tagging), to generate the actual release
- v[0-9]+\.[0-9]+\.[0-9]+
- 'v[0-9]+.[0-9]+.[0-9]+'

jobs:
build-rpm:
runs-on: ubuntu-latest
if: ${{ startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/tags/prep-release-v') }}
strategy:
matrix:
config:
- pgrx:
pg-version: pg15
pg:
version: 15.5
version: 15.6
- pgrx:
pg-version: pg16
pg:
Expand All @@ -35,6 +46,7 @@ jobs:

build-zip-gnu:
runs-on: ubuntu-latest
if: ${{ startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/tags/prep-release-v') }}
container:
image: ghcr.io/vadosware/pg_idkit/builder-gnu:0.1.x
strategy:
Expand All @@ -43,7 +55,7 @@ jobs:
- pgrx:
pg-version: pg15
pg:
version: 15.5
version: 15.6
- pgrx:
pg-version: pg16
pg:
Expand All @@ -61,6 +73,7 @@ jobs:

release:
runs-on: ubuntu-latest
if: ${{ startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/tags/prep-release-v') }}
permissions:
contents: write
needs:
Expand All @@ -81,6 +94,7 @@ jobs:
with:
prerelease: ${{ startsWith(github.ref, 'refs/heads/prep-release') }}
draft: ${{ startsWith(github.ref, 'refs/heads/prep-release') }}
tag_name: ${{ github.ref || inputs.version }}
# NOTE: while we have the CHANGELOG file, it always contains *all* changes,
# so we will use the generated GitHub commits for now
generate_release_notes: true
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/tag-release.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
name: tag-release

on:
workflow_dispatch:
pull_request:
closed:
types:
- closed
branches:
- 'prep-release-v**'

jobs:
## Tag a release (if the commit looks like one)
tag-release:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.title, 'release:')
if: ${{ github.event_name == 'workflow_dispatch' || github.event.pull_request.merged }}
permissions:
contents: write
steps:
Expand All @@ -25,7 +29,7 @@ jobs:
with:
tool: just,cargo-get

- name: Push new tag
- name: Create and push new tag
run: |
git tag v$(just print-version);
git push --follow-tags;
git push --tags
20 changes: 20 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,26 @@
# Changelog
All notable changes to this project will be documented in this file.

## [0.2.3] - 2024-03-06

### Bug Fixes

- Release tagging upon merge
- Use --locked for cargo install
- Use zsh for better cross-platform support
- More zsh usage
- Use builder-gnu image from CI
- Cross platform shell usage by platform

### Features

- Require superuser in pg_idkit.control ("Ability to install the extension for non-root users")

### Miscellaneous Tasks

- Update Rust to 1.76.0
- Update postgres 16 to v16.2

## [0.2.2] - 2024-01-30

### Bug Fixes
Expand Down
Loading

0 comments on commit f15c400

Please sign in to comment.