Skip to content

Commit 6745ac7

Browse files
committed
Cache Clojure GitLibs
1 parent 79937e5 commit 6745ac7

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/build.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,12 @@ jobs:
160160
path: ~/.m2/repository
161161
key: ${{ runner.os }}-temurin-${{ matrix.java-version }}-maven-${{ matrix.module }}-${{ hashFiles(format('modules/{0}/deps.edn', matrix.module)) }}
162162

163+
- name: Cache Clojure GitLibs
164+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
165+
with:
166+
path: ~/.gitlibs
167+
key: ${{ runner.os }}-gitlibs-${{ matrix.module }}-${{ hashFiles(format('modules/{0}/deps.edn', matrix.module)) }}
168+
163169
- name: Download Job IG Profiles
164170
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
165171
with:
@@ -206,6 +212,12 @@ jobs:
206212
path: ~/.m2/repository
207213
key: ${{ runner.os }}-temurin-21-maven-db-coverage-${{ hashFiles('modules/db/deps.edn') }}
208214

215+
- name: Cache Clojure GitLibs
216+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
217+
with:
218+
path: ~/.gitlibs
219+
key: ${{ runner.os }}-gitlibs-db-coverage-${{ hashFiles('modules/db/deps.edn') }}
220+
209221
- name: Download Job IG Profiles
210222
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
211223
with:
@@ -252,6 +264,12 @@ jobs:
252264
path: ~/.m2/repository
253265
key: ${{ runner.os }}-temurin-${{ matrix.java-version }}-maven-${{ hashFiles('deps.edn') }}
254266

267+
- name: Cache Clojure GitLibs
268+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
269+
with:
270+
path: ~/.gitlibs
271+
key: ${{ runner.os }}-gitlibs-${{ hashFiles('deps.edn') }}
272+
255273
- name: Download Job IG Profiles
256274
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
257275
with:
@@ -304,6 +322,12 @@ jobs:
304322
path: ~/.m2/repository
305323
key: ${{ runner.os }}-temurin-21-maven-build-${{ hashFiles('**/deps.edn') }}
306324

325+
- name: Cache Clojure GitLibs
326+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
327+
with:
328+
path: ~/.gitlibs
329+
key: ${{ runner.os }}-gitlibs-build-${{ hashFiles('**/deps.edn') }}
330+
307331
- name: Download Job IG Profiles
308332
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
309333
with:
@@ -1857,6 +1881,12 @@ jobs:
18571881
path: ~/.m2/repository
18581882
key: ${{ runner.os }}-temurin-21-maven-jepsen-${{ hashFiles('modules/jepsen/deps.edn') }}
18591883

1884+
- name: Cache Clojure GitLibs
1885+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
1886+
with:
1887+
path: ~/.gitlibs
1888+
key: ${{ runner.os }}-gitlibs-jepsen-${{ hashFiles('modules/jepsen/deps.edn') }}
1889+
18601890
- name: APT Update
18611891
run: sudo apt-get update
18621892

@@ -2255,6 +2285,12 @@ jobs:
22552285
path: ~/.m2/repository
22562286
key: ${{ runner.os }}-temurin-21-maven-jepsen-${{ hashFiles('modules/jepsen/deps.edn') }}
22572287

2288+
- name: Cache Clojure GitLibs
2289+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
2290+
with:
2291+
path: ~/.gitlibs
2292+
key: ${{ runner.os }}-gitlibs-jepsen-${{ hashFiles('modules/jepsen/deps.edn') }}
2293+
22582294
- name: APT Update
22592295
run: sudo apt-get update
22602296

0 commit comments

Comments
 (0)