We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b75dba commit ee8d340Copy full SHA for ee8d340
1 file changed
.github/workflows/release.yml
@@ -66,7 +66,13 @@ jobs:
66
- name: Install cargo-pgrx
67
run: |
68
rustup show
69
- cargo install cargo-pgrx --version "=${{ env.PGRX_VERSION }}" --locked
+ # The cache may already hold the cargo-pgrx binary; `cargo install` errors on an
70
+ # existing binary, so only (re)install when it is missing or the wrong version.
71
+ if cargo-pgrx --version 2>/dev/null | grep -qF "${PGRX_VERSION}"; then
72
+ echo "cargo-pgrx ${PGRX_VERSION} already present (restored from cache)"
73
+ else
74
+ cargo install cargo-pgrx --version "=${PGRX_VERSION}" --locked --force
75
+ fi
76
77
- name: Build the extension for PostgreSQL ${{ matrix.pg }}
78
0 commit comments