mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-26 17:40:37 +00:00
circleci: flush caches
The rust cache is growing dramatically. Change the cache key to start over. The weird "v98" was something I'd intended to reset before landing the circleci config. Do the sane thing and start over at v01. The intent is that we just increment the number each time something gets broken.
This commit is contained in:
@@ -37,7 +37,7 @@ jobs:
|
||||
name: Restore postgres cache
|
||||
keys:
|
||||
# Restore ONLY if the rev key matches exactly
|
||||
- postgres-cache-v98-{{ checksum "/tmp/cache-key-postgres" }}
|
||||
- postgres-cache-v01-{{ checksum "/tmp/cache-key-postgres" }}
|
||||
|
||||
# Build postgres if the restore_cache didn't find a build.
|
||||
# `make` can't figure out whether the cache is valid, since
|
||||
@@ -53,7 +53,7 @@ jobs:
|
||||
|
||||
- save_cache:
|
||||
name: Save postgres cache
|
||||
key: postgres-cache-v98-{{ checksum "/tmp/cache-key-postgres" }}
|
||||
key: postgres-cache-v01-{{ checksum "/tmp/cache-key-postgres" }}
|
||||
paths:
|
||||
- tmp_install
|
||||
|
||||
@@ -61,16 +61,16 @@ jobs:
|
||||
name: Restore rust cache
|
||||
keys:
|
||||
# Choose an exact match first, if it exists.
|
||||
- rust-cache-deps-v98-{{ checksum "Cargo.lock" }}
|
||||
- rust-cache-deps-v01-{{ checksum "Cargo.lock" }}
|
||||
# Fall back to an out of date cache. Cargo can figure out what needs rebuilding.
|
||||
- rust-cache-deps-v98-
|
||||
- rust-cache-deps-v01-
|
||||
|
||||
# Build the rust code, including test binaries
|
||||
- run: cargo build --bins --tests
|
||||
|
||||
- save_cache:
|
||||
name: Save rust cache
|
||||
key: rust-cache-deps-v98-{{ checksum "Cargo.lock" }}
|
||||
key: rust-cache-deps-v01-{{ checksum "Cargo.lock" }}
|
||||
paths:
|
||||
- ~/.cargo/registry
|
||||
- ~/.cargo/git
|
||||
|
||||
Reference in New Issue
Block a user