这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
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
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
strategy:
fail-fast: false
matrix:
postgres: [14, 15, 16, 17]
postgres: [14, 15, 16, 17, "18beta1"]
runner:
- ubuntu-22.04
- ubuntu-22.04-arm
Expand All @@ -29,7 +29,9 @@ jobs:
- name: Build
run: docker buildx build --build-arg PG_MAJOR=${{ matrix.postgres }} -t test .
- name: Test
run: docker run test cargo pgrx test pg${{ matrix.postgres }}
run: |
PG_VERSION=$(echo "${{ matrix.postgres }}" | sed 's/[^0-9].*$//')
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although the image is tagged as 18beta1, pgrx expects just 18; this trims off any non-digit from the matrix string.

docker run test cargo pgrx test pg${PG_VERSION}
lint:
name: Linting (fmt + clippy)
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
# Ensure installed pg_config is first on path
export PATH=$PATH:/usr/lib/postgresql/${{ matrix.postgres }}/bin

cargo install cargo-pgrx --version 0.12.7 --locked
cargo install cargo-pgrx --version 0.16.0 --locked
cargo pgrx init --pg${{ matrix.postgres }}=/usr/lib/postgresql/${{ matrix.postgres }}/bin/pg_config
- name: Build artifacts
run: |
Expand Down
Loading