Skip to content

Commit 8a3f567

Browse files
ci: build the PostgreSQL extension against the runner's PostgreSQL
1 parent e7c5245 commit 8a3f567

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,6 @@ jobs:
185185
# is slow and is not one of the checks a merge waits for.
186186
native-pg:
187187
runs-on: ubuntu-latest
188-
env:
189-
PG: "16"
190188
defaults:
191189
run:
192190
working-directory: native/pg
@@ -196,8 +194,10 @@ jobs:
196194
with:
197195
toolchain: stable
198196
components: clippy, rustfmt
199-
- name: PostgreSQL headers, and leave to install an extension
197+
- name: Headers for the runner's own PostgreSQL, and leave to install an extension
200198
run: |
199+
PG=$(ls /usr/lib/postgresql | sort -n | tail -1)
200+
echo "PG=$PG" >> "$GITHUB_ENV"
201201
sudo apt-get update
202202
sudo apt-get install -y "postgresql-server-dev-$PG" libclang-dev
203203
sudo chmod -R a+rwX "$(pg_config --pkglibdir)" "$(pg_config --sharedir)/extension"

0 commit comments

Comments
 (0)