ci: cache gems and persist nix store between runs
This commit is contained in:
parent
67263cb75c
commit
15cff895af
2 changed files with 14 additions and 0 deletions
|
|
@ -27,6 +27,12 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Cache gems
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: .gems
|
||||
key: gems-${{ hashFiles('Gemfile.lock') }}
|
||||
|
||||
- name: Wait for Postgres
|
||||
run: |
|
||||
for i in $(seq 1 30); do
|
||||
|
|
|
|||
|
|
@ -33,6 +33,14 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
# The nix closure persists in the runner's nix-store volume; gems live
|
||||
# in the workspace (.gems via the flake's BUNDLE_PATH), so cache those.
|
||||
- name: Cache gems
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: .gems
|
||||
key: gems-${{ hashFiles('Gemfile.lock') }}
|
||||
|
||||
- name: Wait for Postgres
|
||||
run: |
|
||||
for i in $(seq 1 30); do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue