Skip to content

Commit 1649ccc

Browse files
committed
ga build
1 parent b91b34e commit 1649ccc

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/build.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
override: true
2626
components: rustfmt, clippy
2727

28+
# Ubuntu PostgreSQL setup
2829
- name: Install dependencies (Ubuntu)
2930
if: runner.os == 'Linux'
3031
run: |
@@ -37,7 +38,9 @@ jobs:
3738
3839
- name: Install dependencies (macOS)
3940
if: runner.os == 'macOS'
40-
run: brew install git icu4c pkg-config postgresql@${{ matrix.pg-version }}
41+
run: |
42+
brew install git icu4c pkg-config postgresql@${{ matrix.pg-version }}
43+
echo "/opt/homebrew/opt/postgresql@${{ matrix.pg-version }}/bin" >> $GITHUB_PATH
4144
4245
- name: Install PostgreSQL (Windows)
4346
if: runner.os == 'Windows'
@@ -68,7 +71,8 @@ jobs:
6871
- name: Install pgrx
6972
run: |
7073
cargo install --locked cargo-pgrx --version 0.13.1 || true
71-
cargo pgrx init --pg${{ matrix.pg-version }}
74+
# Initialize pgrx with the correct syntax for specifying PostgreSQL version
75+
cargo pgrx init --pg${{ matrix.pg-version }} $(which pg_config)
7276
env:
7377
CARGO_HTTP_TIMEOUT: 300
7478
PKG_CONFIG_PATH: ${{ runner.os == 'macOS' && '/opt/homebrew/opt/icu4c/lib/pkgconfig:/opt/homebrew/opt/postgresql@15/lib/pkgconfig' || '' }}

0 commit comments

Comments
 (0)