File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 25
25
override : true
26
26
components : rustfmt, clippy
27
27
28
+ # Ubuntu PostgreSQL setup
28
29
- name : Install dependencies (Ubuntu)
29
30
if : runner.os == 'Linux'
30
31
run : |
37
38
38
39
- name : Install dependencies (macOS)
39
40
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
41
44
42
45
- name : Install PostgreSQL (Windows)
43
46
if : runner.os == 'Windows'
68
71
- name : Install pgrx
69
72
run : |
70
73
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)
72
76
env :
73
77
CARGO_HTTP_TIMEOUT : 300
74
78
PKG_CONFIG_PATH : ${{ runner.os == 'macOS' && '/opt/homebrew/opt/icu4c/lib/pkgconfig:/opt/homebrew/opt/postgresql@15/lib/pkgconfig' || '' }}
You can’t perform that action at this time.
0 commit comments