Quellcode durchsuchen

Merge pull request #6741 from qzhuyan/ci/william/mac-cache-otp-install

ci(mac): cache otp install only
William Yang vor 4 Jahren
Ursprung
Commit
fa59141d6d
2 geänderte Dateien mit 4 neuen und 4 gelöschten Zeilen
  1. 2 2
      .github/workflows/build_packages.yaml
  2. 2 2
      .github/workflows/build_slim_packages.yaml

+ 2 - 2
.github/workflows/build_packages.yaml

@@ -152,8 +152,8 @@ jobs:
     - uses: actions/cache@v2
     - uses: actions/cache@v2
       id: cache
       id: cache
       with:
       with:
-        path: ~/.kerl
-        key: otp-${{ matrix.otp }}-${{ matrix.macos }}
+        path: ~/.kerl/${{ matrix.otp }}
+        key: otp-install-${{ matrix.otp }}-${{ matrix.macos }}
     - name: build erlang
     - name: build erlang
       if: steps.cache.outputs.cache-hit != 'true'
       if: steps.cache.outputs.cache-hit != 'true'
       timeout-minutes: 60
       timeout-minutes: 60

+ 2 - 2
.github/workflows/build_slim_packages.yaml

@@ -105,8 +105,8 @@ jobs:
     - uses: actions/cache@v2
     - uses: actions/cache@v2
       id: cache
       id: cache
       with:
       with:
-        path: ~/.kerl
-        key: otp-${{ matrix.otp }}-${{ matrix.macos }}
+        path: ~/.kerl/${{ matrix.otp }}
+        key: otp-install-${{ matrix.otp }}-${{ matrix.macos }}
     - name: build erlang
     - name: build erlang
       if: steps.cache.outputs.cache-hit != 'true'
       if: steps.cache.outputs.cache-hit != 'true'
       timeout-minutes: 60
       timeout-minutes: 60