Просмотр исходного кода

ci: add .gitlibs to build cache

Andelf 4 лет назад
Родитель
Сommit
dc8972b08a
1 измененных файлов с 10 добавлено и 8 удалено
  1. 10 8
      .github/workflows/build.yml

+ 10 - 8
.github/workflows/build.yml

@@ -29,13 +29,15 @@ jobs:
           fetch-depth: 1
           fetch-depth: 1
           submodules: 'true'
           submodules: 'true'
 
 
-      - name: Maven cache
-        uses: actions/cache@v1
-        id: maven-cache
+      - name: Clojure cache
+        uses: actions/cache@v2
+        id: clojure-deps
         with:
         with:
-          path: ~/.m2/repository
-          key: ${{ runner.os }}-maven-${{ hashFiles('deps.edn') }}
-          restore-keys: ${{ runner.os }}-maven-
+          path: |
+            ~/.m2/repository
+            ~/.gitlibs
+          key: ${{ runner.os }}-clojure-deps-${{ hashFiles('deps.edn') }}
+          restore-keys: ${{ runner.os }}-clojure-deps-
 
 
       - name: Prepare Java
       - name: Prepare Java
         uses: actions/setup-java@v1
         uses: actions/setup-java@v1
@@ -57,8 +59,8 @@ jobs:
         with:
         with:
           cli: ${{ env.CLOJURE_VERSION }}
           cli: ${{ env.CLOJURE_VERSION }}
 
 
-      - name: Fetch Maven deps
-        if: steps.maven-cache.outputs.cache-hit != 'true'
+      - name: Fetch Clojure deps
+        if: steps.clojure-deps.outputs.cache-hit != 'true'
         run: clojure -A:cljs -P
         run: clojure -A:cljs -P
 
 
       - name: Get yarn cache directory path
       - name: Get yarn cache directory path