Skip to content

Commit 7ab13cc

Browse files
committed
ci: add continue-on-error to all cache steps in setup-pgrx composite action
Transient cache-service failures in post-step cleanup were marking the entire Windows build job as failed even though all actual build work and artifact uploads had succeeded. This caused the Create GitHub Release job to be skipped. Add continue-on-error: true to the Cargo registry, cargo-pgrx binary, and pgrx home cache steps (the Cargo build artifacts step already had it). Cache saves are best-effort — a failure only means the next run is slower, not that the current run should fail.
1 parent f02e66d commit 7ab13cc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/actions/setup-pgrx/action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ runs:
3636
# ── Caching ───────────────────────────────────────────────────────────
3737
- name: Cache Cargo registry
3838
uses: actions/cache@v5
39+
continue-on-error: true # Transient cache-service failures must not block the build.
3940
with:
4041
path: |
4142
~/.cargo/registry/index
@@ -58,6 +59,7 @@ runs:
5859
- name: Cache cargo-pgrx binary
5960
id: cache-cargo-pgrx
6061
uses: actions/cache@v5
62+
continue-on-error: true # Transient cache-service failures must not block the build.
6163
with:
6264
path: |
6365
~/.cargo/bin/cargo-pgrx
@@ -72,6 +74,7 @@ runs:
7274
- name: Cache pgrx home (~/.pgrx)
7375
id: cache-pgrx-home
7476
uses: actions/cache@v5
77+
continue-on-error: true # Transient cache-service failures must not block the build.
7578
with:
7679
path: ~/.pgrx
7780
key: pgrx-home-pg18-pgrx0.18.0-${{ runner.os }}-${{ runner.arch }}

0 commit comments

Comments
 (0)