mirror of
https://github.com/ruvnet/RuVector.git
synced 2026-05-27 00:25:10 +00:00
fix(ci): Add separate pgrx init steps for Ubuntu and macOS
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 <noreply@anthropic.com>
This commit is contained in:
parent
2113fa6bcf
commit
72dee130cb
1 changed files with 7 additions and 1 deletions
8
.github/workflows/postgres-extension-ci.yml
vendored
8
.github/workflows/postgres-extension-ci.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue