From 30d119d3a93422423f78e47064710f562f4f4bd8 Mon Sep 17 00:00:00 2001 From: William Yang Date: Thu, 13 Jan 2022 11:41:45 +0100 Subject: [PATCH] ci(mac): cache otp install only only cache otp installation instead of the entire kerl dir to save cache spaces --- .github/workflows/build_packages.yaml | 4 ++-- .github/workflows/build_slim_packages.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_packages.yaml b/.github/workflows/build_packages.yaml index 459c8c180..802fa2113 100644 --- a/.github/workflows/build_packages.yaml +++ b/.github/workflows/build_packages.yaml @@ -152,8 +152,8 @@ jobs: - uses: actions/cache@v2 id: cache with: - path: ~/.kerl - key: otp-${{ matrix.otp }}-${{ matrix.macos }} + path: ~/.kerl/${{ matrix.otp }} + key: otp-install-${{ matrix.otp }}-${{ matrix.macos }} - name: build erlang if: steps.cache.outputs.cache-hit != 'true' timeout-minutes: 60 diff --git a/.github/workflows/build_slim_packages.yaml b/.github/workflows/build_slim_packages.yaml index 9fd718eb5..dd8d2568d 100644 --- a/.github/workflows/build_slim_packages.yaml +++ b/.github/workflows/build_slim_packages.yaml @@ -105,8 +105,8 @@ jobs: - uses: actions/cache@v2 id: cache with: - path: ~/.kerl - key: otp-${{ matrix.otp }}-${{ matrix.macos }} + path: ~/.kerl/${{ matrix.otp }} + key: otp-install-${{ matrix.otp }}-${{ matrix.macos }} - name: build erlang if: steps.cache.outputs.cache-hit != 'true' timeout-minutes: 60