Skip to content

Commit 8277727

Browse files
committed
fix(ci): init cargo pgrx
Signed-off-by: vados <vados@vadosware.io>
1 parent a6792a3 commit 8277727

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/build-and-test/action.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,11 @@ runs:
149149
PGRX_PG_VERSION: ${{ inputs.pgrx-pg-version }}
150150
PKG_PG_VERSION: ${{ inputs.pkg-pg-version }}
151151
DOCKER_BUILD_USER: ${{ inputs.user }}
152+
# We must build w/out static when on alpine
153+
# (this fixes the libclang dynamic loading not supported error)
154+
RUSTFLAGS: ${{ inputs.libc == 'musl' && '-Ctarget-feature=-crt-static' || '' }}
152155
run: |
153-
cargo pgrx --version
156+
su idkit -c "cargo install cargo-pgrx@${{ inputs.cargo-pgrx-version }}"
154157
su idkit -c "just pgrx-init"
155158
156159
# Run cargo check

0 commit comments

Comments
 (0)