From 72dee130cb897d7bfb77821bf1f32aef7d3de98a Mon Sep 17 00:00:00 2001 From: rUv Date: Fri, 26 Dec 2025 17:30:49 +0000 Subject: [PATCH] fix(ci): Add separate pgrx init steps for Ubuntu and macOS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit macOS uses Homebrew path for PostgreSQL, not the Linux system path. Split pgrx init into OS-specific steps with correct pg_config paths. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .github/workflows/postgres-extension-ci.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/postgres-extension-ci.yml b/.github/workflows/postgres-extension-ci.yml index 03641791..9a131759 100644 --- a/.github/workflows/postgres-extension-ci.yml +++ b/.github/workflows/postgres-extension-ci.yml @@ -94,10 +94,16 @@ jobs: - name: Install cargo-pgrx run: cargo install cargo-pgrx --version 0.12.0 --locked - - name: Initialize pgrx + - name: Initialize pgrx (Ubuntu) + if: runner.os == 'Linux' run: cargo pgrx init --pg${{ matrix.pg_version }}=/usr/lib/postgresql/${{ matrix.pg_version }}/bin/pg_config working-directory: crates/ruvector-postgres + - name: Initialize pgrx (macOS) + if: runner.os == 'macOS' + run: cargo pgrx init --pg${{ matrix.pg_version }}=/opt/homebrew/opt/postgresql@${{ matrix.pg_version }}/bin/pg_config + working-directory: crates/ruvector-postgres + - name: Check code formatting run: cargo fmt --all -- --check working-directory: crates/ruvector-postgres